actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
899 stars 193 forks source link

Smart Home: Allow to set https agent options #422

Open bramkragten opened 3 years ago

bramkragten commented 3 years ago

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.

Fleker commented 3 years ago

FYI @proppy