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.
- Listed in Console, logging and analytics
- Nested in
WebSocketCommandHandler
Constructors
| Member | What it is |
|---|---|
ResponseData(WebSocketCommandHandler.ResponseType type, string eventType, object data, uint? commandId = null) | Creates a WebSocketCommandHandler.ResponseData from type, eventType, data and commandId. |
Fields
| Member | What it is |
|---|---|
uint? commandId | The request ID this answers, for command results. Null otherwise. |
object data | The payload, such as the command result or event data. |
string eventType | The subscription event name, or the log type for system messages. |
DateTime timeStamp | UTC time the message was created. |
WebSocketCommandHandler.ResponseType type | Whether this is a system message, subscription event or command result. |
1 private and internal field
Methods
| Member | What 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: