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