diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 22e266a..d21e411 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -169,9 +169,9 @@ export class WebsocketClient extends EventEmitter { /** * Request connection of all dependent websockets, instead of waiting for automatic connection by library */ - public connectAll(): Promise | Promise[] | undefined { + public connectAll(): Promise[] | undefined { if (this.isInverse()) { - return this.connect(wsKeyInverse); + return [this.connect(wsKeyInverse)]; } if (this.options.linear === true) {