From 94e817f0450b9af819249f8ce91315c16fcb5f9e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 20:56:45 -0400 Subject: [PATCH] *Update dist --- dist/peer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/peer.js b/dist/peer.js index 99829d2..74e1737 100644 --- a/dist/peer.js +++ b/dist/peer.js @@ -52,7 +52,7 @@ class Peer { }, emulateWebsocket: self._emulateWebsocket, }); - this._channel = this._muxer.createChannel({ + this._channel = await this._muxer.createChannel({ protocol: this._proxy.protocol, async onopen(m) { if (!m) { @@ -75,7 +75,7 @@ class Peer { }, }); if (this._createDefaultMessage) { - pipe = this._channel.addMessage({ + pipe = await this._channel.addMessage({ async onmessage(m) { if (m instanceof Uint8Array) { m = buffer_1.Buffer.from(m);