Spacetime::MockTransport
Inherits Spacetime::Transport < Reference < Object
Deterministic in-memory mock transport for testing Spacetime::Client without a running server.
Instance methods
close
Sourceconnect
Sourceconnected?
SourceSimulates receiving a SATS-JSON text message from the server.
receive_server_message(msg : Protocol::ServerMessage, compression : Protocol::Compression = Protocol::Compression::None) : Nil
Simulates receiving a Protocol::ServerMessage from the server over the binary BSATN protocol.
sent_binary_frames
Sourcesent_messages
Sourcesent_text_frames
Source