Skip to content

Commit

Permalink
revert: make WsClientOptions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed Oct 17, 2024
1 parent b14870c commit b38aa5b
Showing 1 changed file with 2 additions and 2 deletions.
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 | undefined;
options: WsClientOptions;
private pendingRequests: Record<number, HolochainRequest>;
private index: number;
private authenticationToken: AppAuthenticationToken | undefined;
Expand All @@ -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;
}
Expand Down

0 comments on commit b38aa5b

Please sign in to comment.