1.2 KiB
1.2 KiB
Fix topic-filter overlapping handling in shared subscription. In the previous implementation, the storage method for subscription options did not provide adequate support for shared subscriptions. This resulted in message routing failures and leakage of routing tables between nodes during the "subscribe-unsubscribe" process with specific order and topics.
Breaking changes
- Hook callback
session.subscribedandclient.subscribewill now receive shared subscription in its full representation, e.g.$share/group1/topic1/#, and theshareproperty is deleted fromsubopts. - Hook callback
session.unsubscribedandclient.unsubscribewill now receive shared subscription in its full representation, e.g.$share/group1/topic1/#instead of justtopic1/#. - ExHook Proto changed. The
sharefield in messageSubOptswas deprecated. ExHook Server will now receive shared subscription in its full representation, e.g.$share/group1/topic1/#, and theshareproperty is deleted from messageSubOpts. session.subscribedandsession.unsubscribedrule-engine events will have shared subscriptions in their full representation fortopic, e.g.$share/group1/topic1/#instead of justtopic1/#.