[fix] Raise when a WebSocket request is expected