Skip to content

Commit ccedb2b

Browse files
[chore] Update default values for pingInterval and pingTimeout
`pingInterval` now defaults to 15 seconds, and `pingTimeout` to 5 seconds.
1 parent d50bf87 commit ccedb2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function Server (opts) {
3737
opts = opts || {};
3838

3939
this.wsEngine = opts.wsEngine || process.env.EIO_WS_ENGINE || 'uws';
40-
this.pingTimeout = opts.pingTimeout || 60000;
41-
this.pingInterval = opts.pingInterval || 25000;
40+
this.pingTimeout = opts.pingTimeout || 5000;
41+
this.pingInterval = opts.pingInterval || 15000;
4242
this.upgradeTimeout = opts.upgradeTimeout || 10000;
4343
this.maxHttpBufferSize = opts.maxHttpBufferSize || 10E7;
4444
this.transports = opts.transports || Object.keys(transports);

0 commit comments

Comments
 (0)