fix: missing uri argument for node WS
This commit is contained in:
parent
f81f170ee9
commit
8b7ffa8821
|
@ -39,7 +39,7 @@ export class WebSocketPeer extends BasePeer implements Peer {
|
||||||
|
|
||||||
public static async connect(uri: URL): Promise<WebSocket> {
|
public static async connect(uri: URL): Promise<WebSocket> {
|
||||||
return new Promise((resolve, reject) => {
|
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", () => {
|
socket.addEventListener("open", () => {
|
||||||
resolve(socket);
|
resolve(socket);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue