Bugfix: show connected state for stomp out node after reconnect

This commit is contained in:
Olivier Verhaegen 2023-04-11 09:05:32 +02:00 committed by GitHub
parent 2e5eced601
commit 453a75a3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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