Skip to content

Commit ac28de2

Browse files
committed
Update WebSockets limits
1 parent 11c09dc commit ac28de2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fern/api-reference/websockets/subscription-api.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ Next, install a command line tool for making WebSocket requests such as [wscat](
8585

8686
The following limits apply for WebSocket connections:
8787

88-
* There is a limit of **100 WebSocket connections** for the FREE tier and **2,000 WebSocket connections** for all other tiers, with a maximum of 50,000 connections per instance.
88+
* There is a limit of **100 WebSocket connections** for the FREE tier and **2,000 WebSocket connections** for all other tiers.
8989
* There is a limit of **1,000 unique subscriptions** per WebSocket connection.
9090
* The maximum size of a JSON-RPC `batch` request that can be sent over a WebSocket connection is 1000
91+
* The maximum number of concurrent JSON-RPC requests (i.e. requests awaiting responses) on a single WebSocket connection is 200
9192

9293
***
9394

@@ -97,5 +98,6 @@ The following limits apply for WebSocket connections:
9798
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9899
| `32600` | `"Sorry, the maximum batch request size is 1000. Please reduce the size of your request and try again."` | Occurs when user attempts to send high-volume JSON-RPC traffic over Websockets. We recommend this traffic be sent over HTTP instead to optimize server backends. |
99100
| `1008` | `"WebSocket connection limit reached for this app. Please close existing connections and try again."` | Triggered when the number of open WebSocket connections for the app reaches the allowed limit. Close unused connections to restore access. |
100-
| `1008` | `" This app has exceeded its limit of open WebSockets. Please close some other connections first."` | Triggered when the team previously exceeded the limit and tries to reconnect again before the backoff interval expires. Close existing connections and wait. |
101-
| `1008` | `" You have exceeded the maximum number of concurrent requests on a single WebSocket. At most 200 concurrent requests are allowed per WebSocket."` | Triggered when a client has too many pending JSON-RPC requests on a single WebSocket. Ensure each request completes before sending more. |
101+
| `1008` | `"This app has exceeded its limit of open WebSockets. Please close some other connections first."` | Triggered when the team previously exceeded the limit and tries to reconnect again before the backoff interval expires. Close existing connections and wait. |
102+
| `1008` | `"You have exceeded the maximum number of concurrent requests on a single WebSocket. At most 200 concurrent requests are allowed per WebSocket."` | Triggered when a client has too many pending JSON-RPC requests on a single WebSocket. Ensure each request completes before sending more. |
103+
| `32603` | `"You have exceeded the maximum number of subscriptions on a single WebSocket." | Triggered when a client has too many subscriptions on a single WebSocket. Unsubscribe before creating new subscriptions. |

0 commit comments

Comments
 (0)