Dynamic subscription unsubscribe-from-all (and docs)

Hi all,

This may be a question specifically for @Steve-Mcl - I've been looking everywhere for documentation of the new Dynamic Subscription feature in the MQTT Input node, and just can't find it. I did find this discussion and this GitHub page, but they don't seem to be up to date.

I'm hoping there's a way to tell an MQTT In node to unsubscribe from all topics it's currently subscribed to. That would be very helpful, rather than maintaining my own list of the previously-subscribed topics. I tried msg.action = "unsubscribe" with msg.topic = "*" as a guess, but that wasn't it. Is there currently a way to do this?

And are there any plans for updating the node info that displays in the info panel at the right? There's no info displayed currently, at least on my freshly-upgraded v3.0.2, node.js v16.

Thank you very much for your work on this node up to this point - dynamic subscriptions were obviously an important capability to have.


  • msg.action: "unsubscribe"
  • msg.topic: true

You can send an action of "getSubscriptions" then use the result to unsubscribe.

Demos on forum...

There is info...

... however, as always, it could be improved.

Pull Requests are welcome (for both the nodes built in documentation and for the node-red website :slight_smile: