Skip to main content

ws_handler

Function ws_handler 

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

Axum handler that upgrades an HTTP request to a WebSocket connection.