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