struct

Spacetime::Protocol::ServerMessage

Inherits Struct < Value < Object

Top-level Server -> Client WebSocket message envelope.

Constructors

decode_bsatn(decoder : BSATN::Decoder) : self
Source
from_frame_bytes(frame : Bytes) : self

Decodes a ServerMessage from a binary WebSocket frame (which begins with a 1-byte compression tag).

Source
from_sats_json(json_str : String) : self
Source
identity_token(msg : IdentityToken) : self
Source
initial_subscription(msg : InitialSubscription) : self
Source
new(tag : Tag, payload : Payload)
Source
one_off_query_response(msg : OneOffQueryResponse) : self
Source
procedure_result(msg : ProcedureResult) : self
Source
subscribe_applied(msg : SubscribeApplied) : self
Source
subscribe_multi_applied(msg : SubscribeMultiApplied) : self
Source
subscription_error(msg : SubscriptionError) : self
Source
transaction_update(msg : TransactionUpdate) : self
Source
transaction_update_light(msg : TransactionUpdateLight) : self
Source
unsubscribe_applied(msg : UnsubscribeApplied) : self
Source
unsubscribe_multi_applied(msg : UnsubscribeMultiApplied) : self
Source

Instance methods

encode_bsatn(encoder : BSATN::Encoder) : Nil
Source
payload
Source
to_frame_bytes(compression : Compression = Compression::None) : Bytes

Encodes this ServerMessage as a binary WebSocket frame with the 1-byte compression tag prefix.

Source

Nested types