anvil_server::ws

Function handle_ws

Source
pub async fn handle_ws<Http, Ws: PubSubRpcHandler>(
    ws: WebSocketUpgrade,
    __arg1: State<(Http, Ws)>,
) -> Response
Expand description

Handles incoming Websocket upgrade

This is the entrypoint invoked by the axum server for a websocket request