From e556b1721ebf4ffc95092eb585a7a0de42488219 Mon Sep 17 00:00:00 2001 From: peepopoggers <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 29 Jan 2021 11:27:29 +0000 Subject: [PATCH] Fixed bug where linear was inv --- src/websocket-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);