From 453a75a3f0a3ca000875dfd384be114f17c2e705 Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:05:32 +0200 Subject: [PATCH] Bugfix: show connected state for stomp out node after reconnect --- io/stomp/18-stomp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index ab2ac7d7..a35da1a7 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -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);