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.
- package/client.d.ts +11 -0
- 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
|