Skip to content

Commit

Permalink
[chore] Update default values for pingInterval and pingTimeout
Browse files Browse the repository at this point in the history
`pingInterval` now defaults to 15 seconds, and `pingTimeout` to 5 seconds.
  • Loading branch information
darrachequesne committed Dec 28, 2017
1 parent d50bf87 commit ccedb2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function Server (opts) {
opts = opts || {};

this.wsEngine = opts.wsEngine || process.env.EIO_WS_ENGINE || 'uws';
this.pingTimeout = opts.pingTimeout || 60000;
this.pingInterval = opts.pingInterval || 25000;
this.pingTimeout = opts.pingTimeout || 5000;
this.pingInterval = opts.pingInterval || 15000;
this.upgradeTimeout = opts.upgradeTimeout || 10000;
this.maxHttpBufferSize = opts.maxHttpBufferSize || 10E7;
this.transports = opts.transports || Object.keys(transports);
Expand Down

0 comments on commit ccedb2b

Please sign in to comment.