Bugfix: show connected state after reconnect (#986)
This commit is contained in:
parent
6d4c865611
commit
471422adfe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue