From b4d80b86e3a434d2305ff67f92d6ab9fee1566e1 Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:35:40 +0200 Subject: [PATCH 1/2] 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 --- 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); From dd6bfc6f518de6282e6b85ad54d0e774d12a884a Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 11 Apr 2023 14:37:47 +0100 Subject: [PATCH 2/2] Bump stomp for status PR #987 --- io/stomp/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/stomp/package.json b/io/stomp/package.json index 4d576fc8..1f1d1329 100644 --- a/io/stomp/package.json +++ b/io/stomp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-stomp", - "version" : "0.0.13", + "version" : "0.0.14", "description" : "A Node-RED node to publish and subscribe to/from a Stomp server", "dependencies" : { "stomp-client" : "^0.9.0" @@ -19,7 +19,7 @@ }, "author": { "name": "Dave Conway-Jones", - "email": "ceejay@vnet.ibm.com", + "email": "dceejay@gmail.com", "url": "http://nodered.org" } }