bbx_net/websocket/
mod.rs

1//! WebSocket protocol support for phone PWA interfaces.
2//!
3//! This module provides a WebSocket server for receiving control messages
4//! from web browsers (phones), with support for:
5//!
6//! - Room-based authentication via room codes
7//! - Bidirectional communication (server can push state to clients)
8//! - JSON message protocol
9//!
10//! Enable with the `websocket` feature flag.
11
12mod connection;
13mod protocol;
14mod room;
15mod server;
16
17pub use connection::ConnectionState;
18pub use protocol::{ClientMessage, ParamState, ServerMessage};
19pub use room::{Room, RoomConfig, RoomManager};
20pub use server::{ServerCommand, WsServer, WsServerConfig};