Expand description
WebSocket plugin for Sova (HTTP upgrade + rooms hub).
Structs§
- Hub
- Shared room hub installed by
crate::Ws. - Room
Handle - Handle for a room membership; dropped automatically on leave / session end.
- Ws
- WebSocket plugin configuration.
- WsConfig
- WsSession
- Active WebSocket connection passed to route handlers.
- WsShared
- Shared state installed by
Ws.
Enums§
- Message
- An enum representing the various forms of a WebSocket message.
Traits§
- WsRoute
Ext - Register WebSocket routes on
App/Router.
Functions§
- origin_
allowed - Check
Originagainst an allowlist. Empty allowlist → allow all (dev default). - upgrade_
ws - Perform a WebSocket upgrade from a route handler.