Skip to main content

ws_agent_handler

Function ws_agent_handler 

Source
pub async fn ws_agent_handler(
    ws: WebSocketUpgrade,
    __arg1: State<Arc<AppState>>,
    __arg2: Query<WsQuery>,
) -> impl IntoResponse
Expand description

Handle the WebSocket upgrade request.

Authenticates via the token query param, then upgrades to a bidirectional WebSocket connection.