Skip to main content

ws_handler

Function ws_handler 

Source
pub async fn ws_handler(
    ws: WebSocketUpgrade,
    __arg1: State<Arc<ServerState>>,
) -> Response
Expand description

axum route handler for GET /ws.

The upgrade is not gated by the x-libfw-protocol HTTP header (a browser WebSocket handshake cannot carry it); instead the protocol version is checked inside the FRAME_HELLO handshake.