aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/lib/dispatcher/dispatcher-base.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/dispatcher/dispatcher-base.js
parentworkflows/test: reschedule for my convenience (diff)
downloadcleanup-path-5.0.2.tar.gz
cleanup-path-5.0.2.zip
bump dependenciesv5.0.2
Diffstat (limited to 'node_modules/undici/lib/dispatcher/dispatcher-base.js')
-rw-r--r--node_modules/undici/lib/dispatcher/dispatcher-base.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/node_modules/undici/lib/dispatcher/dispatcher-base.js b/node_modules/undici/lib/dispatcher/dispatcher-base.js
index bd860ac..c999b2c 100644
--- a/node_modules/undici/lib/dispatcher/dispatcher-base.js
+++ b/node_modules/undici/lib/dispatcher/dispatcher-base.js
@@ -11,15 +11,23 @@ const { kDestroy, kClose, kClosed, kDestroyed, kDispatch, kInterceptors } = requ
const kOnDestroyed = Symbol('onDestroyed')
const kOnClosed = Symbol('onClosed')
const kInterceptedDispatch = Symbol('Intercepted Dispatch')
+const kWebSocketOptions = Symbol('webSocketOptions')
class DispatcherBase extends Dispatcher {
- constructor () {
+ constructor (opts) {
super()
this[kDestroyed] = false
this[kOnDestroyed] = null
this[kClosed] = false
this[kOnClosed] = []
+ this[kWebSocketOptions] = opts?.webSocket ?? {}
+ }
+
+ get webSocketOptions () {
+ return {
+ maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024
+ }
}
get destroyed () {