You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api/WebSocket.md
-15Lines changed: 0 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ When passing an object as the second argument, the following options are availab
20
20
***protocols**`string | string[]` (optional) - Subprotocol(s) to request the server use.
21
21
***dispatcher**`Dispatcher` (optional) - A custom [`Dispatcher`](/docs/docs/api/Dispatcher.md) to use for the connection.
22
22
***headers**`HeadersInit` (optional) - Custom headers to include in the WebSocket handshake request.
23
-
***maxDecompressedMessageSize**`number` (optional) - Maximum allowed size in bytes for decompressed messages when using the `permessage-deflate` extension. **Default:**`4194304` (4 MB).
24
23
25
24
### Example:
26
25
@@ -45,20 +44,6 @@ import { WebSocket } from 'undici'
> ⚠️ **Security Note**: The `maxDecompressedMessageSize` option protects against memory exhaustion attacks where a malicious server sends a small compressed payload that decompresses to an extremely large size. If you increase this limit significantly above the default, ensure your application can handle the increased memory usage.
0 commit comments