I have a few questions regarding the limits of using websockets.
-
Is there a limit to the amount of open websocket connections from a single IP address? If so, what is it?
-
The documentation regarding the websocket limits has the following statement:
WebSocket connections have a limit of 5 incoming messages per second. A message is considered:
- A PING frame
- A PONG frame
- A JSON controlled message (e.g. subscribe, unsubscribe)
A single connection can listen to a maximum of 1024 streams.
How does that work? How can a single connection listen to 1024 streams if you can only receive 5 messages a second? If I am listening to 900 streams (for example only, I wouldn’t do this in practice), I’ll probably be receiving more than 5 messages a second at least once or twice every now and then if not fairly often. Doesn’t that make me immediately bannable even though I’m not necessarily attempting to bypass the imposed limits?
I have a feeling I understand the rules incorrectly.
Any help would be appreciated. Thanks!