aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/docs
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-03-14 12:19:48 +0100
committerEgor Tensin <egor@tensin.name>2026-03-14 12:19:48 +0100
commit5736345440e43ac7f8d72c748c6b959bee5f8aa8 (patch)
tree367b7d90a8d2e199b70a196a1a91c2aa267c5633 /node_modules/undici/docs
parentMerge pull request #8 from egor-tensin/dependabot/npm_and_yarn/undici-6.24.1 (diff)
downloadcleanup-path-5736345440e43ac7f8d72c748c6b959bee5f8aa8.tar.gz
cleanup-path-5736345440e43ac7f8d72c748c6b959bee5f8aa8.zip
wait, what the hell? doesn't Dependabot update node_modules as well?
Diffstat (limited to 'node_modules/undici/docs')
-rw-r--r--node_modules/undici/docs/docs/api/Errors.md1
-rw-r--r--node_modules/undici/docs/docs/api/WebSocket.md8
2 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/undici/docs/docs/api/Errors.md b/node_modules/undici/docs/docs/api/Errors.md
index c328689..a6af44d 100644
--- a/node_modules/undici/docs/docs/api/Errors.md
+++ b/node_modules/undici/docs/docs/api/Errors.md
@@ -27,6 +27,7 @@ import { errors } from 'undici'
| `InformationalError` | `UND_ERR_INFO` | expected error with reason |
| `ResponseExceededMaxSizeError` | `UND_ERR_RES_EXCEEDED_MAX_SIZE` | response body exceed the max size allowed |
| `SecureProxyConnectionError` | `UND_ERR_PRX_TLS` | tls connection to a proxy failed |
+| `MessageSizeExceededError` | `UND_ERR_WS_MESSAGE_SIZE_EXCEEDED` | WebSocket decompressed message exceeded the maximum allowed size |
### `SocketError`
diff --git a/node_modules/undici/docs/docs/api/WebSocket.md b/node_modules/undici/docs/docs/api/WebSocket.md
index 9d374f4..8b6f7b9 100644
--- a/node_modules/undici/docs/docs/api/WebSocket.md
+++ b/node_modules/undici/docs/docs/api/WebSocket.md
@@ -13,6 +13,14 @@ Arguments:
* **url** `URL | string` - The url's protocol *must* be `ws` or `wss`.
* **protocol** `string | string[] | WebSocketInit` (optional) - Subprotocol(s) to request the server use, or a [`Dispatcher`](./Dispatcher.md).
+### WebSocketInit
+
+When passing an object as the second argument, the following options are available:
+
+* **protocols** `string | string[]` (optional) - Subprotocol(s) to request the server use.
+* **dispatcher** `Dispatcher` (optional) - A custom [`Dispatcher`](/docs/docs/api/Dispatcher.md) to use for the connection.
+* **headers** `HeadersInit` (optional) - Custom headers to include in the WebSocket handshake request.
+
### Example:
This example will not work in browsers or other platforms that don't allow passing an object.