Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/chai-4.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-2k authored Apr 21, 2024
2 parents b2a68a2 + d250afb commit 22aa9e0
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 50 deletions.
8 changes: 7 additions & 1 deletion lib/nanoleaf-aurora-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const fs = require('fs'),
EventSource = require('eventsource'),
timeout = 2000;

const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 1
});

var AuroraApi = module.exports = function (options) {
var self = this;

Expand Down Expand Up @@ -40,7 +45,8 @@ var AuroraApi = module.exports = function (options) {
port: this.port,
path: `${this.base}${this.accessToken}${pathname}`,
method: method,
timeout: this.timeout
timeout: this.timeout,
agent: httpAgent
}

return options;
Expand Down
119 changes: 71 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"axios": "^1.4.0",
"chai": "^4.3.10",
"eslint": "^8.46.0",

"axios": "^1.6.0",
"chai": "^4.3.10",
"eslint": "^8.52.0",
"gulp": "^4.0.2",
"mocha": "^10.2.0"
},
Expand Down

0 comments on commit 22aa9e0

Please sign in to comment.