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); });