diff --git a/src/common/connection.ts b/src/common/connection.ts index 66d431f8..2cbe8f87 100644 --- a/src/common/connection.ts +++ b/src/common/connection.ts @@ -382,6 +382,7 @@ class Connection extends EventEmitter { _whenReady(promise: Promise): Promise { return new Promise((resolve, reject) => { + promise.catch(reject); if (!this._shouldBeConnected) { reject(new NotConnectedError()) } else if (this._state === WebSocket.OPEN && this._isReady) {