From 1fe52494269636aae80847b219e2ef6f9f144136 Mon Sep 17 00:00:00 2001 From: thisyahlen <104053934+thisyahlen-deriv@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:27:20 +0800 Subject: [PATCH] chore: fix typescript in api-client (#70) --- src/client-library/deriv-api-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client-library/deriv-api-client.ts b/src/client-library/deriv-api-client.ts index 663e5b0..98bc9c8 100644 --- a/src/client-library/deriv-api-client.ts +++ b/src/client-library/deriv-api-client.ts @@ -205,7 +205,7 @@ export class DerivAPIClient { switchConnection() {} isSocketClosingOrClosed() { - return [!2, 3].includes(this.websocket.readyState); + return ![2, 3].includes(this.websocket.readyState); } disconnect() {