Skip to main content

GameServerWebsocketResponse

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.

A message from a game server over its WebSocket: a system message, a subscription event or a command result. Time-stamped (UTC) when made.

Constructors​

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

Fields​

MemberWhat it is
uint? CommandIdId of the command this answers, for command results.
object DataThe payload object.
string EventTypeName of the event, for subscription messages.
DateTime TimeStampWhen the message was made, in UTC.
GameServerWebsocketResponseType TypeWhether this is a system message, subscription event or command result.
1 private and internal field
MemberWhat it is
private string serializedCached JSON text; set to null on creation and not used in this code.