Skip to content

Commit

Permalink
docs: add note about the agent option
Browse files Browse the repository at this point in the history
Related: #708
  • Loading branch information
darrachequesne committed Sep 13, 2023
1 parent 1097056 commit 3dcb88c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export interface SocketOptions {

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

Expand Down

0 comments on commit 3dcb88c

Please sign in to comment.