Comparing version 8.2.2 to 8.2.3
@@ -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); |
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
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
126725
3688
494