Comparing version 5.2.0 to 5.2.1
@@ -696,2 +696,4 @@ 'use strict'; | ||
websocket._socket.removeListener('data', socketOnData); | ||
websocket.readyState = WebSocket.CLOSING; | ||
@@ -754,3 +756,2 @@ websocket._closeCode = err[constants.kStatusCode]; | ||
this.removeListener('close', socketOnClose); | ||
this.removeListener('data', socketOnData); | ||
this.removeListener('end', socketOnEnd); | ||
@@ -765,3 +766,7 @@ this[kWebSocket] = undefined; | ||
// `receiver` stream is closed after writing any remaining buffered data to | ||
// it. | ||
// it. If the readable side of the socket is in flowing mode then there is no | ||
// buffered data as everything has been already written and `readable.read()` | ||
// will return `null`. If instead, the socket is paused, any possible buffered | ||
// data will be read as a single chunk and emitted synchronously in a single | ||
// `'data'` event. | ||
// | ||
@@ -771,2 +776,3 @@ websocket._socket.read(); | ||
this.removeListener('data', socketOnData); | ||
clearTimeout(websocket._closeTimer); | ||
@@ -773,0 +779,0 @@ |
{ | ||
"name": "ws", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -38,8 +38,8 @@ "keywords": [ | ||
"eslint-plugin-node": "~6.0.0", | ||
"eslint-plugin-promise": "~3.7.0", | ||
"eslint-plugin-promise": "~3.8.0", | ||
"eslint-plugin-standard": "~3.0.0", | ||
"mocha": "~5.2.0", | ||
"nyc": "~11.8.0", | ||
"nyc": "~12.0.2", | ||
"utf-8-validate": "~4.0.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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
105366
15
2713
6