Skip to content

Commit

Permalink
Allow to override https agent (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyRugalev authored Apr 4, 2021
1 parent c4fd8ea commit f18e397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f18e397

Please sign in to comment.