RunicBridgeMessage record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicBridgeMessage : IEquatable<RunicBridgeMessage>

Inherits or implements IEquatable.

A push that InMemoryBridgeTransport received from its window.

Parameters

Json

The push, one JSON object.

ConnectionKey

The connection a targeted push was sent to, or null for a broadcast to every connection.

Remarks

RunicBridgeMessage.Kind and RunicBridgeMessage.Route are read from RunicBridgeMessage.Json, so a test can select the pushes of one route: host.Transport.TakeMessages().Where(message => message.Route == editor.Route).

Constructors

RunicBridgeMessage

public RunicBridgeMessage(string Json, string? ConnectionKey)

A push that InMemoryBridgeTransport received from its window.

Parameters

Json

The push, one JSON object.

ConnectionKey

The connection a targeted push was sent to, or null for a broadcast to every connection.

Remarks

RunicBridgeMessage.Kind and RunicBridgeMessage.Route are read from RunicBridgeMessage.Json, so a test can select the pushes of one route: host.Transport.TakeMessages().Where(message => message.Route == editor.Route).

Properties

ConnectionKey

public string? ConnectionKey { get; init; }

The connection a targeted push was sent to, or null for a broadcast to every connection.

Json

public string Json { get; init; }

The push, one JSON object.

Kind

public string? Kind { get; }

The push's kind, such as state, frame, failure or operation, or null when it names none.

Route

public string? Route { get; }

The route the push belongs to (its route), or null when it names none.