aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/web/websocket/websocket.js
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-21 07:49:34 +0200
committerEgor Tensin <egor@tensin.name>2026-06-21 07:49:34 +0200
commit3421d2ed73f43159e8fa04943e13ca9c0f0404d3 (patch)
tree5302ee9ac0ea902e85ec8f600b4f58984576e02b /node_modules/undici/lib/web/websocket/websocket.js
parentMerge pull request #10 from egor-tensin/dependabot/github_actions/actions/che... (diff)
downloadcleanup-path-3421d2ed73f43159e8fa04943e13ca9c0f0404d3.tar.gz
cleanup-path-3421d2ed73f43159e8fa04943e13ca9c0f0404d3.zip
bump dependencies
Diffstat (limited to '')
-rw-r--r--node_modules/undici/lib/web/websocket/websocket.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/undici/lib/web/websocket/websocket.js b/node_modules/undici/lib/web/websocket/websocket.js
index ccedb79..80991e9 100644
--- a/node_modules/undici/lib/web/websocket/websocket.js
+++ b/node_modules/undici/lib/web/websocket/websocket.js
@@ -435,9 +435,12 @@ class WebSocket extends EventTarget {
// once this happens, the connection is open
this[kResponse] = response
- const maxPayloadSize = this[kController]?.dispatcher?.webSocketOptions?.maxPayloadSize
+ const webSocketOptions = this[kController]?.dispatcher?.webSocketOptions
+ const maxFragments = webSocketOptions?.maxFragments
+ const maxPayloadSize = webSocketOptions?.maxPayloadSize
const parser = new ByteParser(this, parsedExtensions, {
+ maxFragments,
maxPayloadSize
})
parser.on('drain', onParserDrain)