From 719307801a2170f02d3a16ab52752ac219ca4b6e Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Tue, 17 Nov 2020 11:49:39 +0100 Subject: [PATCH] fix(typings): export withCredentials option Related: https://github.com/socketio/socket.io-client/issues/1405 --- lib/manager.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/manager.ts b/lib/manager.ts index e70e3fa89..cb26a4fef 100644 --- a/lib/manager.ts +++ b/lib/manager.ts @@ -176,6 +176,13 @@ interface EngineOptions { * certificate information. */ rejectUnauthorized: boolean; + + /** + * Whether to include credentials (cookies, authorization headers, TLS + * client certificates, etc.) with cross-origin XHR polling requests + * @default false + */ + withCredentials: boolean; } export interface ManagerOptions extends EngineOptions {