diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 0389e2a..e17e6eb 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -67,7 +67,7 @@ export class WebsocketClient extends EventEmitter { }; - if (this.options.linear) { + if (!this.options.linear) { this.client = new InverseClient(undefined, undefined, this.options.livenet, this.options.restOptions, this.options.requestOptions); }else{ this.client = new LinearClient(undefined, undefined, this.options.livenet, this.options.restOptions, this.options.requestOptions);