Comparing version 2.3.0 to 2.3.1
@@ -656,6 +656,12 @@ /*! | ||
this._req.on('upgrade', (res, socket, head) => { | ||
this.emit('headers', res.headers, res); | ||
// | ||
// The user may have closed the connection from a listener of the `headers` | ||
// event. | ||
// | ||
if (this.readyState !== WebSocket.CONNECTING) return; | ||
this._req = null; | ||
this.emit('headers', res.headers, res); | ||
const digest = crypto.createHash('sha1') | ||
@@ -662,0 +668,0 @@ .update(key + constants.GUID, 'binary') |
{ | ||
"name": "ws", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -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
83099
2373