public sealed record RunicBridgeMessage : IEquatable<RunicBridgeMessage> A push that InMemoryBridgeTransport received from its window.
Parameters
JsonThe push, one JSON object.
ConnectionKeyThe connection a targeted push was sent to, or
nullfor 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
JsonThe push, one JSON object.
ConnectionKeyThe connection a targeted push was sent to, or
nullfor 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.