From b38aa5b0daf324696d676e799f5c550e5b1c7178 Mon Sep 17 00:00:00 2001 From: Jost Schulte Date: Thu, 17 Oct 2024 14:14:44 -0600 Subject: [PATCH] revert: make WsClientOptions optional --- src/api/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/client.ts b/src/api/client.ts index 8455e5f8..89b880fd 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -37,7 +37,7 @@ export interface AppAuthenticationRequest { export class WsClient extends Emittery { socket: IsoWebSocket; url: URL | undefined; - options: WsClientOptions | undefined; + options: WsClientOptions; private pendingRequests: Record; private index: number; private authenticationToken: AppAuthenticationToken | undefined; @@ -48,7 +48,7 @@ export class WsClient extends Emittery { this.registerCloseListener(socket); this.socket = socket; this.url = url; - this.options = options; + this.options = options || {}; this.pendingRequests = {}; this.index = 0; }