diff --git a/src/index.ts b/src/index.ts index 1dccad6..058cb71 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) {