fix: missing uri argument for node WS

This commit is contained in:
Derrick Hammer 2023-09-01 06:38:51 -04:00
parent f81f170ee9
commit 8b7ffa8821
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export class WebSocketPeer extends BasePeer implements Peer {
public static async connect(uri: URL): Promise<WebSocket> {
return new Promise((resolve, reject) => {
const socket = isNode ? new WS.WebSocket() : new WebSocket(uri);
const socket = isNode ? new WS.WebSocket(uri) : new WebSocket(uri);
socket.addEventListener("open", () => {
resolve(socket);
});