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 6.2.2 to 6.2.3

4

lib/websocket-server.js

@@ -189,2 +189,3 @@ 'use strict';

: false;
const upgrade = req.headers.upgrade;
const version = +req.headers['sec-websocket-version'];

@@ -195,3 +196,4 @@ const extensions = {};

req.method !== 'GET' ||
req.headers.upgrade.toLowerCase() !== 'websocket' ||
upgrade === undefined ||
upgrade.toLowerCase() !== 'websocket' ||
!key ||

@@ -198,0 +200,0 @@ !keyRegex.test(key) ||

{
"name": "ws",
"version": "6.2.2",
"version": "6.2.3",
"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