Added WebSocket detection