Skip to content

Commit

Permalink
fix: save connection url as class variable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sirpy authored and facebook-github-bot committed Jan 19, 2021
1 parent 65975dd commit 8facc86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/WebSocket/WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 8facc86

Please sign in to comment.