diff --git a/Libraries/WebSocket/WebSocket.js b/Libraries/WebSocket/WebSocket.js index 7975508604c..fa2b8260eb7 100644 --- a/Libraries/WebSocket/WebSocket.js +++ b/Libraries/WebSocket/WebSocket.js @@ -97,6 +97,7 @@ class WebSocket extends (EventTarget(...WEBSOCKET_EVENTS): any) { options: ?{headers?: {origin?: string, ...}, ...}, ) { super(); + this.url = url; if (typeof protocols === 'string') { protocols = [protocols]; }