Compare commits
2 Commits
2d9272cd42
...
c459f1f0a3
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | c459f1f0a3 | |
Derrick Hammer | 5b443ed66d |
|
@ -64,8 +64,7 @@ export default class ProtomuxRPC extends EventEmitter {
|
|||
encoding: response,
|
||||
onmessage: this._onresponse.bind(this),
|
||||
});
|
||||
this._channel.open(options?.handshake);
|
||||
await this._channel.ready;
|
||||
await this._channel.open(options?.handshake);
|
||||
}
|
||||
_onopen(handshake) {
|
||||
this.emit("open", handshake);
|
||||
|
|
|
@ -80,9 +80,7 @@ export default class ProtomuxRPC extends EventEmitter {
|
|||
onmessage: this._onresponse.bind(this),
|
||||
});
|
||||
|
||||
this._channel.open(options?.handshake);
|
||||
|
||||
await this._channel.ready;
|
||||
await this._channel.open(options?.handshake);
|
||||
}
|
||||
|
||||
_onopen(handshake: any) {
|
||||
|
|
Loading…
Reference in New Issue