async fn on_upgrade<DB: DatabaseRef + Send + Sync + Clone + 'static>( socket: WebSocket, _who: SocketAddr, app_state: AppState<DB>, )
Actual websocket statemachine (one will be spawned per connection)