From 8b7ffa8821779c769ed2f5772854537675ab5da6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 06:38:51 -0400 Subject: [PATCH] fix: missing uri argument for node WS --- src/transports/webSocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transports/webSocket.ts b/src/transports/webSocket.ts index a22f755..ceff822 100644 --- a/src/transports/webSocket.ts +++ b/src/transports/webSocket.ts @@ -39,7 +39,7 @@ export class WebSocketPeer extends BasePeer implements Peer { public static async connect(uri: URL): Promise { 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); });