From 471422adfeed222c0e5c59610789b1e643397e23 Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Fri, 7 Apr 2023 09:46:51 +0200 Subject: [PATCH 1/2] Bugfix: show connected state after reconnect (#986) --- 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); From 10ffd71b0218f5e9d606a92901505bd74b182bfc Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 7 Apr 2023 08:49:08 +0100 Subject: [PATCH 2/2] bump stomp for fix PR#986 to close #985 --- io/stomp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/stomp/package.json b/io/stomp/package.json index ccec0f5f..4d576fc8 100644 --- a/io/stomp/package.json +++ b/io/stomp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-stomp", - "version" : "0.0.12", + "version" : "0.0.13", "description" : "A Node-RED node to publish and subscribe to/from a Stomp server", "dependencies" : { "stomp-client" : "^0.9.0"