Socket
Socket
Sign inDemoInstall

socket.io

Package Overview
Dependencies
Maintainers
2
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

History.md
2.0.2 / 2017-06-01
===================
* [fix] Fix timing issues with middleware (#2948)
2.0.1 / 2017-05-09

@@ -3,0 +8,0 @@ ===================

2

lib/namespace.js

@@ -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;

7

lib/socket.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc