socket.io
Advanced tools
Comparing version 2.0.1 to 2.0.2
2.0.2 / 2017-06-01 | ||
=================== | ||
* [fix] Fix timing issues with middleware (#2948) | ||
2.0.1 / 2017-05-09 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -102,2 +102,4 @@ | ||
Namespace.prototype.use = function(fn){ | ||
debug('removing initial packet'); | ||
delete this.server.eio.initialPacket; | ||
this.fns.push(fn); | ||
@@ -104,0 +106,0 @@ return this; |
@@ -300,5 +300,6 @@ | ||
this.join(this.id); | ||
// the CONNECT packet for the default namespace | ||
// has already been sent as an `initialPacket` | ||
if (this.nsp.name !== '/') { | ||
var skip = this.nsp.name === '/' && this.nsp.fns.length === 0; | ||
if (skip) { | ||
debug('packet already sent in initial handshake'); | ||
} else { | ||
this.packet({ type: parser.CONNECT }); | ||
@@ -305,0 +306,0 @@ } |
{ | ||
"name": "socket.io", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "node.js realtime framework server", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"socket.io-adapter": "~1.1.0", | ||
"socket.io-client": "2.0.1", | ||
"socket.io-client": "~2.0.2", | ||
"socket.io-parser": "~3.1.1" | ||
@@ -34,0 +34,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74780
1312
+ Addedsocket.io-client@2.0.4(transitive)
- Removeddebug@2.6.4(transitive)
- Removedms@0.7.3(transitive)
- Removedsocket.io-client@2.0.1(transitive)
Updatedsocket.io-client@~2.0.2