aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/web/websocket/websocket.js
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-12 16:20:31 +0200
committerEgor Tensin <egor@tensin.name>2026-05-12 16:20:31 +0200
commit3974efd722fa10f283df76342125776a352072dd (patch)
tree21b5240dc856fe452da37f21313a7e1c7801c17f /node_modules/undici/lib/web/websocket/websocket.js
parentworkflows/test: reschedule for my convenience (diff)
downloadcleanup-path-3974efd722fa10f283df76342125776a352072dd.tar.gz
cleanup-path-3974efd722fa10f283df76342125776a352072dd.zip
bump dependenciesv5.0.2
Diffstat (limited to '')
-rw-r--r--node_modules/undici/lib/web/websocket/websocket.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/node_modules/undici/lib/web/websocket/websocket.js b/node_modules/undici/lib/web/websocket/websocket.js
index aa2a20a..ccedb79 100644
--- a/node_modules/undici/lib/web/websocket/websocket.js
+++ b/node_modules/undici/lib/web/websocket/websocket.js
@@ -435,7 +435,11 @@ class WebSocket extends EventTarget {
// once this happens, the connection is open
this[kResponse] = response
- const parser = new ByteParser(this, parsedExtensions)
+ const maxPayloadSize = this[kController]?.dispatcher?.webSocketOptions?.maxPayloadSize
+
+ const parser = new ByteParser(this, parsedExtensions, {
+ maxPayloadSize
+ })
parser.on('drain', onParserDrain)
parser.on('error', onParserError.bind(this))