Compare commits
2 Commits
8e0edc4bcd
...
94e817f045
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 94e817f045 | |
Derrick Hammer | 92245a6c1c |
|
@ -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);
|
||||
|
|
|
@ -115,7 +115,7 @@ export default class Peer {
|
|||
emulateWebsocket: self._emulateWebsocket,
|
||||
});
|
||||
|
||||
this._channel = this._muxer.createChannel({
|
||||
this._channel = await this._muxer.createChannel({
|
||||
protocol: this._proxy.protocol,
|
||||
async onopen(m: any) {
|
||||
if (!m) {
|
||||
|
@ -142,7 +142,7 @@ export default class Peer {
|
|||
});
|
||||
|
||||
if (this._createDefaultMessage) {
|
||||
pipe = this._channel.addMessage({
|
||||
pipe = await this._channel.addMessage({
|
||||
async onmessage(m: any) {
|
||||
if (m instanceof Uint8Array) {
|
||||
m = Buffer.from(m);
|
||||
|
|
Loading…
Reference in New Issue