You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I subscribe to a topic with wildcard characters, I want to distinguish which topicFilter it is in the message event and distribute it to the corresponding callback function, and the real topic field in the message event needs a matching process with the wildcard theme.
Describe the solution you'd like
Option 1: I hope the client can provide an API to detect whether a wildcard topic matches the actual topic in the message event callback;
Option 2: Add a parameter to onMessageCallback to indicate which subscription topic matches the current topic. This way, I can execute different event callbacks for different subscription topics in the message event,thus not match them manually with if...else...
Describe alternatives you've considered
Additional context
i want sub function like code below. and each callback only work with absolute topic&topicFilter
Is your feature request related to a problem? Please describe.
When I subscribe to a topic with wildcard characters, I want to distinguish which topicFilter it is in the message event and distribute it to the corresponding callback function, and the real topic field in the message event needs a matching process with the wildcard theme.
Describe the solution you'd like
Option 1: I hope the client can provide an API to detect whether a wildcard topic matches the actual topic in the message event callback;
Option 2: Add a parameter to onMessageCallback to indicate which subscription topic matches the current topic. This way, I can execute different event callbacks for different subscription topics in the message event,thus not match them manually with if...else...
Describe alternatives you've considered
Additional context
i want sub function like code below. and each callback only work with absolute topic&topicFilter
The text was updated successfully, but these errors were encountered: