actions-on-google-nodejs icon indicating copy to clipboard operation
actions-on-google-nodejs copied to clipboard

Smart Home: Allow to set https agent options

Open bramkragten opened this issue 4 years ago • 1 comments

We would like to set maxSockets and other options for the https agent, it would be nice if we could pass an agent to use:

const agent = new https.Agent({
   maxSockets: 25
});

const sh = smarthome({ jwt, agent });

It would probably also be wise to set a sane default maxSockets, as the default infinity might not be wise for an app dealing with a lot of traffic,

I can make a PR for this if accepted.

bramkragten avatar Apr 12 '21 15:04 bramkragten

FYI @proppy

Fleker avatar Apr 13 '21 17:04 Fleker