loom_rpc_handler::handler::ws

Function on_upgrade

Source
async fn on_upgrade<DB: DatabaseRef + Send + Sync + Clone + 'static>(
    socket: WebSocket,
    _who: SocketAddr,
    app_state: AppState<DB>,
)
Expand description

Actual websocket statemachine (one will be spawned per connection)