I am using a tcp request node with "keep connection open", but sometimes it gets disconnected. How can I get the status message of the node, to trigger an action which re-connects it (a sort of home-made watchdog)?
Status node.
Yes, not clear how to get the message...
The node does not produce a payload, and in the docs I read about a "status.text"...
From the node help:
status.textstring
the status text.
status.source.typestring
the type of the node that reported status.
status.source.idstring
the id of the node that reported status.
status.source.namestring
the name, if set, of the node that reported status.
Put a debug node on the output of the status node configured to show the complete message object.
I see. But as the node doesn't produce a payload, how can I read status.text?
You can access any property of a msg. As @ghayne said,
Then use the copy path button that appears under your mouse cursor when you hover over the item you are interested in. Then you can use change node to copy that to msg.payload
There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.
Thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.