Set...
msg.action
: "unsubscribe"msg.topic
: true
You can send an action
of "getSubscriptions"
then use the result to unsubscribe.
Demos on forum...
- A clean simple demo: Dynamic MQTT node's "actions->connect" guidance needed - #2 by Steve-Mcl
- A full demo including "unsubscribe all" & "get subscriptions": Dynamic MQTT LWT birth, Close & Will Property - #2 by Steve-Mcl
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