From 1ff4ba2f6c4b41f7c19a5d7ffa8d1ab917b2be38 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 15 Oct 2024 12:33:07 +0200 Subject: [PATCH] fix ws options type --- docs/client.wsclient.md | 2 +- docs/client.wsclient.options.md | 2 +- src/api/client.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/client.wsclient.md b/docs/client.wsclient.md index f9e80aab..e9699d45 100644 --- a/docs/client.wsclient.md +++ b/docs/client.wsclient.md @@ -82,7 +82,7 @@ Description -[WsClientOptions](./client.wsclientoptions.md) +[WsClientOptions](./client.wsclientoptions.md) \| undefined diff --git a/docs/client.wsclient.options.md b/docs/client.wsclient.options.md index d9bb5198..40863ea2 100644 --- a/docs/client.wsclient.options.md +++ b/docs/client.wsclient.options.md @@ -7,5 +7,5 @@ **Signature:** ```typescript -options: WsClientOptions; +options: WsClientOptions | undefined; ``` diff --git a/src/api/client.ts b/src/api/client.ts index 7dd1f61a..21731feb 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; + options: WsClientOptions | undefined; private pendingRequests: Record; private index: number; private authenticationToken: AppAuthenticationToken | undefined; @@ -46,7 +46,7 @@ export class WsClient extends Emittery { super(); this.socket = socket; this.url = url; - this.options = options || {}; + this.options = options; this.pendingRequests = {}; this.index = 0;