Skip to content

Commit 71144b5

Browse files
committed
chore: enhance WSClientConfigurableOptions to support additional WebSocket and HTTP client options
1 parent 1259ebe commit 71144b5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/types/websockets/ws-general.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import { ClientRequestArgs } from 'http';
2+
import WebSocket from 'isomorphic-ws';
3+
14
import { RestClientOptions } from '../rest/client.js';
25
import { APICredentials, APIMarket } from '../shared.js';
36

@@ -35,7 +38,7 @@ export interface WSClientConfigurableOptions {
3538
wsOptions?: {
3639
protocols?: string[];
3740
agent?: any;
38-
};
41+
} & Partial<WebSocket.ClientOptions | ClientRequestArgs>;
3942
wsUrl?: string;
4043

4144
/**

0 commit comments

Comments
 (0)