Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 8.2.2 to 8.2.3

2

lib/permessage-deflate.js

@@ -44,3 +44,3 @@ 'use strict';

* @param {Number} [options.threshold=1024] Size (in bytes) below which
* messages should not be compressed
* messages should not be compressed if context takeover is disabled
* @param {Object} [options.zlibDeflateOptions] Options to pass to zlib on

@@ -47,0 +47,0 @@ * deflate

@@ -277,3 +277,11 @@ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls$" }] */

this._firstFragment = false;
if (rsv1 && perMessageDeflate) {
if (
rsv1 &&
perMessageDeflate &&
perMessageDeflate.params[
perMessageDeflate._isServer
? 'server_no_context_takeover'
: 'client_no_context_takeover'
]
) {
rsv1 = buf.length >= perMessageDeflate._threshold;

@@ -280,0 +288,0 @@ }

{
"name": "ws",
"version": "8.2.2",
"version": "8.2.3",
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

@@ -121,3 +121,3 @@ # ws: a Node.js WebSocket library

threshold: 1024 // Size (in bytes) below which messages
// should not be compressed.
// should not be compressed if context takeover is disabled.
}

@@ -414,4 +414,2 @@ });

function noop() {}
function heartbeat() {

@@ -433,3 +431,3 @@ this.isAlive = true;

ws.isAlive = false;
ws.ping(noop);
ws.ping();
});

@@ -436,0 +434,0 @@ }, 30000);

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