mention how to detect a failed WebSocket handshake