Function on_upgrade

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

Actual websocket statemachine (one will be spawned per connection)