undici-types 7.27.1 → 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.
- package/client.d.ts +16 -0
- 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
|