*Update dist

This commit is contained in:
Derrick Hammer 2023-04-08 20:56:45 -04:00
parent 92245a6c1c
commit 94e817f045
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

4
dist/peer.js vendored
View File

@ -52,7 +52,7 @@ class Peer {
}, },
emulateWebsocket: self._emulateWebsocket, emulateWebsocket: self._emulateWebsocket,
}); });
this._channel = this._muxer.createChannel({ this._channel = await this._muxer.createChannel({
protocol: this._proxy.protocol, protocol: this._proxy.protocol,
async onopen(m) { async onopen(m) {
if (!m) { if (!m) {
@ -75,7 +75,7 @@ class Peer {
}, },
}); });
if (this._createDefaultMessage) { if (this._createDefaultMessage) {
pipe = this._channel.addMessage({ pipe = await this._channel.addMessage({
async onmessage(m) { async onmessage(m) {
if (m instanceof Uint8Array) { if (m instanceof Uint8Array) {
m = buffer_1.Buffer.from(m); m = buffer_1.Buffer.from(m);