*Update dist

This commit is contained in:
Derrick Hammer 2023-04-08 18:03:54 -04:00
parent 5b443ed66d
commit c459f1f0a3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

3
dist/index.js vendored
View File

@ -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);