WsEnvelope

StockSharp.Ws

Lightweight envelope used to dispatch incoming WS frames without parsing the entire payload twice. Fields are populated only when present on the wire — hello frame has only ClientId, auth response has only Success/Error, data messages have only MessageType, client commands have only Type.

Properties

ClientId
public string ClientId { get; set; }
value = wsEnvelope.ClientId
wsEnvelope.ClientId = value

Wire field clientId.

MessageType
public string MessageType { get; set; }
value = wsEnvelope.MessageType
wsEnvelope.MessageType = value

Wire field messageType.

ReqId
public string ReqId { get; set; }
value = wsEnvelope.ReqId
wsEnvelope.ReqId = value

Wire field reqId.

Success
public bool? Success { get; set; }
value = wsEnvelope.Success
wsEnvelope.Success = value

Wire field success.

Type
public string Type { get; set; }
value = wsEnvelope.Type
wsEnvelope.Type = value

Wire field type.