Ask Your Question

Revision history [back]

If a node publishes on a topic and also has a subscriber for it, it will receive "it's own" message. This is a feature, as components in the publish/subscribe system should not need to care about where a message originates from.

Even though this probably is best avoided, you can check for the origin of a message using the MessageEvent mechanism (e.g. if it originates from the same node) as in this example.