Alexey : Fixed WebSocket session handling