From c459f1f0a38e579d3651e12f3399cc9afdabc198 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 18:03:54 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0b99bb8..c511639 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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);