From 2e5eced601ed0ff74349380d4b828e762b80803b Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Fri, 7 Apr 2023 09:26:05 +0200 Subject: [PATCH] Bugfix: show connected state 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 8689a1e0..ab2ac7d7 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -57,6 +57,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);