docs: add note about the agent option

Related: https://github.com/socketio/engine.io-client/pull/708
This commit is contained in:
Damien Arrachequesne
2023-09-13 11:58:29 +02:00
parent 10970563bf
commit 3dcb88cb31

View File

@@ -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;