Skip to content

Commit 3dcb88c

Browse files
docs: add note about the agent option
Related: #708
1 parent 1097056 commit 3dcb88c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/socket.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export interface SocketOptions {
3939

4040
/**
4141
* `http.Agent` to use, defaults to `false` (NodeJS only)
42+
*
43+
* Note: the type should be "undefined | http.Agent | https.Agent | false", but this would break browser-only clients.
44+
*
45+
* @see https://nodejs.org/api/http.html#httprequestoptions-callback
4246
*/
4347
agent: string | boolean;
4448

0 commit comments

Comments
 (0)