Skip to content

Commit 8facc86

Browse files
sirpyfacebook-github-bot
authored andcommitted
fix: save connection url as class variable
Summary: Conform with Websocket javascript api. related to web3js issues: web3/web3.js#2864 web3/web3.js#2602 Reviewed By: javache Differential Revision: D25927475 Pulled By: TheSavior fbshipit-source-id: 26b2df0565dac581d546b6824dd4f0fc2c8cdc32
1 parent 65975dd commit 8facc86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Libraries/WebSocket/WebSocket.js

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class WebSocket extends (EventTarget(...WEBSOCKET_EVENTS): any) {
9797
options: ?{headers?: {origin?: string, ...}, ...},
9898
) {
9999
super();
100+
this.url = url;
100101
if (typeof protocols === 'string') {
101102
protocols = [protocols];
102103
}

0 commit comments

Comments
 (0)