Feature Request: Unsubscribe hooks following client disconnected
The Most Scalable MQTT Broker for IoT
Brought to you by:
melanie23
Originally created by: hiimdoublej-swag
Originally owned by: HJianBo
What would you like to be added/modified:
A toggle that when it's turned on, the broker will send session.unsubscribed webhooks/hooks following a client.disconnected trigger.
Why is this needed:
This will be very helpful for people that need to track per-topic member presence. With this feature, people who are interested in topic presence status (occupied/empty) can store it themselves. I don't think there's a possible way to have this right now.
Long term speaking, topic event hooks (topic.occupied, topic.vacant) actually fits this scenario better, but the suggested option here would do just fine.
Originally posted by: HJianBo
That sounds like a good feature. thanks for your feedback!!
We will discuss this feature and its possible implementation. You may have to wait a while for the feature to be implemented and released.
Linked discussion: https://github.com/emqx/emqx/discussions/6392#discussioncomment-1873870