diff --git a/Libraries/WebSocket/WebSocket.js b/Libraries/WebSocket/WebSocket.js index 3659142aa..7496ef1f9 100644 --- a/Libraries/WebSocket/WebSocket.js +++ b/Libraries/WebSocket/WebSocket.js @@ -189,6 +189,7 @@ class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) { if (ev.id !== this._socketId) { return; } + this.readyState = this.CLOSED; this.dispatchEvent(new WebSocketEvent('error', { message: ev.message, }));