Skip to content

Commit

Permalink
fix ws options type
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Oct 15, 2024
1 parent d6a7db7 commit 1ff4ba2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/client.wsclient.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Description
</td><td>
[WsClientOptions](./client.wsclientoptions.md)
[WsClientOptions](./client.wsclientoptions.md) \| undefined
</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.wsclient.options.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
**Signature:**

```typescript
options: WsClientOptions;
options: WsClientOptions | undefined;
```
4 changes: 2 additions & 2 deletions src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, HolochainRequest>;
private index: number;
private authenticationToken: AppAuthenticationToken | undefined;
Expand All @@ -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;

Expand Down

0 comments on commit 1ff4ba2

Please sign in to comment.