mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 23:18:02 -05:00
docs: add note about the agent option
Related: https://github.com/socketio/engine.io-client/pull/708
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user