enhancement: add support to publish message to specific clients#797
enhancement: add support to publish message to specific clients#797maxwang789 wants to merge 1 commit intomoquette-io:mainfrom
Conversation
| private static final Logger LOG = LoggerFactory.getLogger(PostOffice.class); | ||
|
|
||
| private static final Set<String> NO_FILTER = new HashSet<>(); | ||
| private static final Set<String> NO_FILTER = Collections.unmodifiableSet(new HashSet<>()); |
There was a problem hiding this comment.
I don't change the semantics of NO_FILTER this time, but I think NO_FILTER should be unmodifiable.
|
Hi @maxwang789 thanks for your interest in the project. |
HI @andsel You are correct, this is not part of MQTT specification. |
|
Hi @maxwang789 I understand your reason, but |
Release notes
What does this PR do?
add support to publish message to specific clients
It's a fixed version of #786
Why is it important/What is the impact to the user?
The original request is that one request will be sent to topic "/request", but the response should be sent back on another topic "/response".
With these modifications, the embedding broker could distinguish all connections and support such send/resp mechanism without MQTT5 version.
Checklist
Author's Checklist
How to test this PR locally
Related issues
Use cases