undici-types 6.24.1 → 6.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.d.ts +11 -0
  2. package/package.json +1 -1
package/client.d.ts CHANGED
@@ -78,6 +78,8 @@ export declare namespace Client {
78
78
  localAddress?: string;
79
79
  /** Max response body size in bytes, -1 is disabled */
80
80
  maxResponseSize?: number;
81
+ /** WebSocket-specific options */
82
+ webSocket?: Client.WebSocketOptions;
81
83
  /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
82
84
  autoSelectFamily?: boolean;
83
85
  /** 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 {
103
105
  bytesWritten?: number
104
106
  bytesRead?: number
105
107
  }
108
+ export interface WebSocketOptions {
109
+ /**
110
+ * Maximum allowed payload size in bytes for WebSocket messages.
111
+ * Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
112
+ * Set to 0 to disable the limit.
113
+ * @default 134217728 (128 MB)
114
+ */
115
+ maxPayloadSize?: number;
116
+ }
106
117
  }
107
118
 
108
119
  export default Client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "6.24.1",
3
+ "version": "6.25.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {