OutputChannelMessage Class#
One message from a view to the owner of its channel.
public sealed record OutputChannelMessage : System.IEquatable<Verso.Abstractions.OutputChannelMessage>
Inheritance System.Object → OutputChannelMessage
Implements System.IEquatable<OutputChannelMessage>
Constructors#
OutputChannelMessage(string, string, string, IReadOnlyList<byte[]>) Constructor#
One message from a view to the owner of its channel.
public OutputChannelMessage(string ChannelId, string Type, string? Payload, System.Collections.Generic.IReadOnlyList<byte[]>? Buffers=null);
Parameters#
ChannelId System.String
The channel the message arrived on.
Type System.String
The message type as the owner sees it, with the transport's ext/ prefix already removed.
Payload System.String
The message body as it arrived, which is JSON text rather than a parsed object. The owner knows the shape it expects and the host does not, so it is handed over unread.
Buffers System.Collections.Generic.IReadOnlyList<System.Byte[]>
Binary payloads carried alongside the body, already decoded from their on-the-wire form.
Properties#
Buffers Property#
Binary payloads carried alongside the body, already decoded from their on-the-wire form.
public System.Collections.Generic.IReadOnlyList<byte[]>? Buffers { get; init; }
Property Value#
System.Collections.Generic.IReadOnlyList<System.Byte[]>
ChannelId Property#
The channel the message arrived on.
public string ChannelId { get; init; }
Property Value#
Payload Property#
The message body as it arrived, which is JSON text rather than a parsed object. The owner knows the shape it expects and the host does not, so it is handed over unread.
public string? Payload { get; init; }
Property Value#
Type Property#
The message type as the owner sees it, with the transport's ext/ prefix already removed.
public string Type { get; init; }