socket.io
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -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": [ |
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
56494
8
1470