undici-types 7.27.2 → 7.28.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 +16 -0
  2. package/package.json +1 -1
package/client.d.ts CHANGED
@@ -107,6 +107,8 @@ export declare namespace Client {
107
107
  * @default 60000
108
108
  */
109
109
  pingInterval?: number;
110
+ /** WebSocket-specific configuration options. */
111
+ webSocket?: WebSocketOptions;
110
112
  }
111
113
  export interface SocketInfo {
112
114
  localAddress?: string
@@ -118,6 +120,20 @@ export declare namespace Client {
118
120
  bytesWritten?: number
119
121
  bytesRead?: number
120
122
  }
123
+ export interface WebSocketOptions {
124
+ /**
125
+ * Maximum number of fragments in a message. Set to 0 to disable the limit.
126
+ * @default 131072
127
+ */
128
+ maxFragments?: number;
129
+ /**
130
+ * Maximum allowed payload size in bytes for WebSocket messages.
131
+ * Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
132
+ * Set to 0 to disable the limit.
133
+ * @default 134217728 (128 MB)
134
+ */
135
+ maxPayloadSize?: number;
136
+ }
121
137
  }
122
138
 
123
139
  export default Client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "7.27.2",
3
+ "version": "7.28.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {