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.5.0 to 2.5.1

12

lib/socket.js

@@ -52,2 +52,4 @@

function noop() {}
/**

@@ -76,2 +78,5 @@ * Interface to a `Client` for a given `Namespace`.

this._rooms = [];
// prevents crash when the socket receives an "error" event without listener
this.on('error', noop);
}

@@ -432,8 +437,3 @@

Socket.prototype.onerror = function(err){
if (this.listeners('error').length) {
this.emit('error', err);
} else {
console.error('Missing error handler on `socket`.');
console.error(err.stack);
}
this.emit('error', err);
};

@@ -440,0 +440,0 @@

{
"name": "socket.io",
"version": "2.5.0",
"version": "2.5.1",
"description": "node.js realtime framework server",

@@ -5,0 +5,0 @@ "keywords": [

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