Expand description
WebSocket protocol support for phone PWA interfaces.
This module provides a WebSocket server for receiving control messages from web browsers (phones), with support for:
- Room-based authentication via room codes
- Bidirectional communication (server can push state to clients)
- JSON message protocol
Enable with the websocket feature flag.
Structs§
- Connection
State - Connection state for a single WebSocket client.
- Param
State - Parameter state for sync responses.
- Room
- A room that clients can join.
- Room
Config - Room configuration.
- Room
Manager - Manages active rooms and room codes.
- WsServer
- WebSocket server for phone PWA connections.
- WsServer
Config - Configuration for the WebSocket server.
Enums§
- Client
Message - Incoming message from client (phone).
- Server
Command - Commands from main thread to server.
- Server
Message - Outgoing message to client.