Skip to main content

Module protocol

Module protocol 

Source

Enums§

Command
Command sent from server to client.
CommandResponse
Response from client to server.
ControlMessage
Control messages for channel lifecycle (sent by both sides).
WsTextMessage
Top-level WebSocket text message envelope.

Functions§

frame_tunnel_data
Frame tunnel data with a 4-byte channel ID header for binary WS messages.
parse_tunnel_data
Parse a binary WS message into (channel_id, payload).