1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

node-red-node-stomp | Bugfix: show connected state after reconnect for stomp out node (#987)

* Bugfix: show connected state after reconnect

* Bugfix: show connected state for stomp out node after reconnect
This commit is contained in:
Olivier Verhaegen 2023-04-11 15:35:40 +02:00 committed by GitHub
parent 10ffd71b02
commit b4d80b86e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,10 @@ module.exports = function(RED) {
node.warn("reconnecting"); node.warn("reconnecting");
}); });
node.client.on("reconnect", function() {
node.status({fill:"green",shape:"dot",text:"connected"});
});
node.client.on("error", function(error) { node.client.on("error", function(error) {
node.status({fill:"grey",shape:"dot",text:"error"}); node.status({fill:"grey",shape:"dot",text:"error"});
node.warn(error); node.warn(error);