Repository metrics
- Stars
- (18 stars)
- PR merge metrics
- (PR metrics pending)
Description
In scenarios when subscription is made to a wildcard topic (e.g. "myorg/test/#") client needs to get the precise topic URI too. E.g. when publisher sends "myorg/test/dream/true" the subscriber needs to get the full topic, not only the payload. When no wildcards are used the subscribed topic is equal to the received one. But when wildcards come into play some information is lost - the suffux in the example above. Is there a possiblity to add the topic to emitted data? Or it is a design decision that does not fit with "wildcard" concept?
Looking over the code, it seems that the variable "String topic2" in messageArrived() function is not forwarded on emitting - in my case it contains the actual topic "myorg/test/dream/true" as delivered by Paho.