From f5232605a150ae4d8ac3217dc8debd962b3a009c Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Fri, 16 Sep 2022 13:26:29 +0100 Subject: [PATCH] fixes --- src/websocket-client.ts | 11 ----------- test/ws.util.ts | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/websocket-client.ts b/src/websocket-client.ts index fe73c3e..18898b9 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -144,17 +144,6 @@ export class WebsocketClient extends EventEmitter { this.connectPublic(); break; } - case 'spotv3': { - this.restClient = new SpotClientV3( - undefined, - undefined, - !this.isTestnet(), - this.options.restOptions, - this.options.requestOptions - ); - this.connectPublic(); - break; - } case 'usdcOption': { this.restClient = new USDCOptionClient( undefined, diff --git a/test/ws.util.ts b/test/ws.util.ts index 855dee5..c954169 100644 --- a/test/ws.util.ts +++ b/test/ws.util.ts @@ -37,6 +37,8 @@ export function waitForSocketEvent( ); }, timeoutMs); + let resolvedOnce = false; + function cleanup() { clearTimeout(timeout); resolvedOnce = true; @@ -44,8 +46,6 @@ export function waitForSocketEvent( wsClient.removeListener('error', (e) => rejector(e)); } - let resolvedOnce = false; - function resolver(event) { resolve(event); cleanup();