Skip to main content

WebsocketResponseBody

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

A message received from the Alta API over its WebSocket, either a reply or a subscription event.

Constructors​

MemberWhat it is
WebsocketResponseBody()Creates a WebsocketResponseBody with default values.

Properties​

MemberWhat it is
string Content { get; set; }The payload as a JSON string; WebSocketManager passes it to the handler for Event.
string Event { get; set; }Event name; WebSocketManager uses it to pick the handler.
int Id { get; set; }Id of the request this answers.
string Key { get; set; }Subscription key, probably the id the event is about.
int ResponseCode { get; set; }HTTP-style status code of the reply.