Module websocket

Source
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§

ConnectionState
Connection state for a single WebSocket client.
ParamState
Parameter state for sync responses.
Room
A room that clients can join.
RoomConfig
Room configuration.
RoomManager
Manages active rooms and room codes.
WsServer
WebSocket server for phone PWA connections.
WsServerConfig
Configuration for the WebSocket server.

Enums§

ClientMessage
Incoming message from client (phone).
ServerCommand
Commands from main thread to server.
ServerMessage
Outgoing message to client.