Skip to main content

WebSocketCommandHandler.ResponseData

A class in Root.Township, Alta.Console.

One message sent to a remote console client over the WebSocket: a system message, subscription event or command result, serialized to JSON.

Constructors​

MemberWhat it is
ResponseData(WebSocketCommandHandler.ResponseType type, string eventType, object data, uint? commandId = null)Creates a WebSocketCommandHandler.ResponseData from type, eventType, data and commandId.

Fields​

MemberWhat it is
uint? commandIdThe request ID this answers, for command results. Null otherwise.
object dataThe payload, such as the command result or event data.
string eventTypeThe subscription event name, or the log type for system messages.
DateTime timeStampUTC time the message was created.
WebSocketCommandHandler.ResponseType typeWhether this is a system message, subscription event or command result.
1 private and internal field
MemberWhat it is
private string serializedCached JSON of this response, built on the first GetSerialized call and reused after.

Methods​

MemberWhat it is
string GetSerialized()Returns the JSON for this message, serialized once and cached.

Used in​

Members of other types that take, return or hold a ResponseData: