Socket
Socket
Sign inDemoInstall

ws

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ws - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

lib/.DS_Store

10

lib/websocket.js

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

6

package.json
{
"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"
}
}
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