Using inband channel occupancy events, Ably users can subscribe to occupancy metadata events relating to a single channel. These events are then delivered to the client as messages on the channel itself.
This feature allows developers to understand the exact numbers of connections, publishers, subscribers, presence connections, presence members, and presence subscribers relating to a channel. This information can be used for debugging and monitoring purposes, or for business logic - such as publishing a certain announcement on the channel only when you reach a certain number of subscribers.
How does it work?
Inband channel occupancy events are added in addition to existing occupancy metachannel and Channel Status API, and provides a convenient interface to work with Occupancy in a streaming manner and within the scope of a single channel. Read more about inband channel occupancy in our documentation.
How do I get started with Inband channel occupancy events?
Take a look at this step-by-step tutorial to learn how to subscribe to inband channel occupancy events.
How do I give feedback on this feature?
We rely on your feedback to improve this feature; please either raise issues or pull requests. You can also contact us at any time if you would like to talk about contributing or feature requests.