diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-12 16:20:31 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-12 16:20:31 +0200 |
| commit | 3974efd722fa10f283df76342125776a352072dd (patch) | |
| tree | 21b5240dc856fe452da37f21313a7e1c7801c17f /node_modules/undici/types | |
| parent | workflows/test: reschedule for my convenience (diff) | |
| download | cleanup-path-3974efd722fa10f283df76342125776a352072dd.tar.gz cleanup-path-3974efd722fa10f283df76342125776a352072dd.zip | |
bump dependenciesv5.0.2
Diffstat (limited to 'node_modules/undici/types')
| -rw-r--r-- | node_modules/undici/types/client.d.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/undici/types/client.d.ts b/node_modules/undici/types/client.d.ts index d0a5379..22833ae 100644 --- a/node_modules/undici/types/client.d.ts +++ b/node_modules/undici/types/client.d.ts @@ -78,6 +78,8 @@ export declare namespace Client { localAddress?: string; /** Max response body size in bytes, -1 is disabled */ maxResponseSize?: number; + /** WebSocket-specific options */ + webSocket?: Client.WebSocketOptions; /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */ autoSelectFamily?: boolean; /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */ @@ -103,6 +105,15 @@ export declare namespace Client { bytesWritten?: number bytesRead?: number } + export interface WebSocketOptions { + /** + * Maximum allowed payload size in bytes for WebSocket messages. + * Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages. + * Set to 0 to disable the limit. + * @default 134217728 (128 MB) + */ + maxPayloadSize?: number; + } } export default Client; |
