engine.io
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -40,6 +40,6 @@ | ||
this.wsEngine = opts.wsEngine || process.env.EIO_WS_ENGINE || 'ws'; | ||
this.pingTimeout = opts.pingTimeout || 5000; | ||
this.pingTimeout = opts.pingTimeout || 20000; | ||
this.pingInterval = opts.pingInterval || 25000; | ||
this.upgradeTimeout = opts.upgradeTimeout || 10000; | ||
this.maxHttpBufferSize = opts.maxHttpBufferSize || 10E7; | ||
this.maxHttpBufferSize = opts.maxHttpBufferSize || 1e6; | ||
this.transports = opts.transports || Object.keys(transports); | ||
@@ -46,0 +46,0 @@ this.allowUpgrades = false !== opts.allowUpgrades; |
@@ -211,3 +211,2 @@ /** | ||
self.emit('upgrade', transport); | ||
self.setPingTimeout(); | ||
self.flush(); | ||
@@ -214,0 +213,0 @@ if (self.readyState === 'closing') { |
{ | ||
"name": "engine.io", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"description": "The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server", | ||
"main": "lib/engine.io", | ||
"main": "lib/engine.io.js", | ||
"author": "Guillermo Rauch <guillermo@learnboost.com>", | ||
@@ -7,0 +7,0 @@ "homepage": "https://github.com/socketio/engine.io", |
@@ -224,3 +224,3 @@ | ||
- `pingTimeout` (`Number`): how many ms without a pong packet to | ||
consider the connection closed (`5000`) | ||
consider the connection closed (`20000`) | ||
- `pingInterval` (`Number`): how many ms before sending a new ping | ||
@@ -231,3 +231,3 @@ packet (`25000`) | ||
can be, before closing the session (to avoid DoS). Default | ||
value is `10E7`. | ||
value is `1e6` (1MB). | ||
- `allowRequest` (`Function`): A function that receives a given handshake | ||
@@ -234,0 +234,0 @@ or upgrade request as its first parameter, and can decide whether to |
69821
12
1703