From f18e3974caa2b384d52beca10f25d34c726969e8 Mon Sep 17 00:00:00 2001 From: Anatoly Rugalev Date: Mon, 5 Apr 2021 00:32:03 +0200 Subject: [PATCH] Allow to override https agent (#653) --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 5d094bf37..f1a6210cb 100644 --- a/src/client.ts +++ b/src/client.ts @@ -236,7 +236,7 @@ export class StreamChat< ...inputOptions, }; - if (this.node) { + if (this.node && !this.options.httpsAgent) { this.options.httpsAgent = new https.Agent({ keepAlive: true, keepAliveMsecs: 3000,