Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(events): document the WebSocket subscribe limits

Yudhi Armyndharis5478a3e23b97
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.md
index e8fa0b86b..ff9c645b0 100644
--- a/docs/06-api-specification.md
+++ b/docs/06-api-specification.md
@@ -6870,7 +6870,7 @@ Live events are pushed as a **nested** envelope (note: `data` is under `payload`
}
```
-Error `code` values include `UNAUTHORIZED`, `INVALID_MESSAGE`, `INVALID_SESSION`, `INVALID_EVENTS`, and `FORBIDDEN_SESSION`.
+Error `code` values include `UNAUTHORIZED`, `INVALID_MESSAGE`, `INVALID_SESSION`, `INVALID_EVENTS`, `FORBIDDEN_SESSION`, and `TOO_MANY_SUBSCRIPTIONS`. A subscribe answers `INVALID_SESSION` when `sessionId` is missing, or is neither `"*"` nor a session id of at most 128 letters, digits and hyphens. It answers `TOO_MANY_SUBSCRIPTIONS` when it would take the connection past 4096 rooms (one per session and event subscribed); unsubscribe before subscribing to more.
### Subscribable events