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.subscribed
andclient.subscribe
will now receive shared subscription in its full representation, e.g.$share/group1/topic1/#
, and theshare
property is deleted fromsubopts
. - Hook callback
session.unsubscribed
andclient.unsubscribe
will now receive shared subscription in its full representation, e.g.$share/group1/topic1/#
instead of justtopic1/#
. - ExHook Proto changed. The
share
field in messageSubOpts
was deprecated. ExHook Server will now receive shared subscription in its full representation, e.g.$share/group1/topic1/#
, and theshare
property is deleted from messageSubOpts
. session.subscribed
andsession.unsubscribed
rule-engine events will have shared subscriptions in their full representation fortopic
, e.g.$share/group1/topic1/#
instead of justtopic1/#
.