async fn handle_ws_connection( socket: WebSocket, state: AppState, session: Option<SessionId>, headers: HeaderMap, )