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 2.3.0 to 2.3.1

10

lib/WebSocket.js

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

2

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

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