Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_unsubscribe not working. #2

Open
OmegaJune opened this issue Apr 11, 2021 · 0 comments
Open

_unsubscribe not working. #2

OmegaJune opened this issue Apr 11, 2021 · 0 comments

Comments

@OmegaJune
Copy link

I cannot unsubscribe from a topic.
msg = { topic: "myTopic", payload: "_unsubscribe:nodeName" }

After sending the unsubscribe, I can still get mqtt subscriptions from "myTopic." Then when I subscribe to "myTopic" again, I receive redundant messages.

I see from the comments that this is a known issue:

"One node can be subscribed to the same topic more than once, so if you send two msgs with msg.topic set to i.e. "testTopic", then node will receive two msgs for one msg published to the topic. It's not battle tested yet, so I will be happy for any feedback."

I "battle tested" this and it becomes a problem over time. I have written code (using the RBE node) to filter out redundant messages. So far, the only way I can truly "unsubscribe" is to re-deploy the flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant