Skip to content

Commit

Permalink
fix: save connection url as class variable
Browse files Browse the repository at this point in the history
Conform with Websocket javascript api
  • Loading branch information
sirpy committed Jan 7, 2020
1 parent e8f577e commit 7eb7e91
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 @@ -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];
}
Expand Down

0 comments on commit 7eb7e91

Please sign in to comment.