Skip to content

Commit

Permalink
global.WebSocket -> WebSocket (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed Apr 16, 2024
1 parent 420df88 commit 66365fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SignalingClient.ts
Expand Up @@ -148,7 +148,7 @@ export class SignalingClient extends EventEmitter {
}

/* istanbul ignore next */
this.websocket = new (global.WebSocket || require('ws'))(signedURL);
this.websocket = new (WebSocket || require('ws'))(signedURL);

this.websocket.addEventListener('open', this.onOpen);
this.websocket.addEventListener('message', this.onMessage);
Expand Down

0 comments on commit 66365fe

Please sign in to comment.