Skip to main content

ws_handler

Function ws_handler 

Source
pub async fn ws_handler(
    ws: WebSocketUpgrade,
    __arg1: State<Arc<AppState>>,
    headers: HeaderMap,
    __arg3: Query<WsQuery>,
) -> Response
Expand description

GET /api/ws — WebSocket upgrade with token or cookie auth.