undici-types 8.0.3 → 8.1.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
@@ -73,6 +73,8 @@ export declare namespace Client {
73
73
  localAddress?: string;
74
74
  /** Max response body size in bytes, -1 is disabled */
75
75
  maxResponseSize?: number;
76
+ /** WebSocket-specific options */
77
+ webSocket?: Client.WebSocketOptions;
76
78
  /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
77
79
  autoSelectFamily?: boolean;
78
80
  /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
@@ -113,6 +115,15 @@ export declare namespace Client {
113
115
  bytesWritten?: number
114
116
  bytesRead?: number
115
117
  }
118
+ export interface WebSocketOptions {
119
+ /**
120
+ * Maximum allowed payload size in bytes for WebSocket messages.
121
+ * Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
122
+ * Set to 0 to disable the limit.
123
+ * @default 134217728 (128 MB)
124
+ */
125
+ maxPayloadSize?: number;
126
+ }
116
127
  }
117
128
 
118
129
  export default Client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "8.0.3",
3
+ "version": "8.1.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {