Skip to main content

Module protocol

Module protocol 

Source
Expand description

WebSocket message type registry.

Provides a canonical enum of all WebSocket message types used between the server and the React frontend. The Display / Serialize implementations produce the exact same JSON strings the frontend expects.

Enums§

WsMessageType
All known WebSocket message types, matching the Python WSMessageType enum.

Functions§

ws_message
Construct a standard WebSocket message envelope.