1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update tcp node status on reconnect after timeout

Closes #757
This commit is contained in:
Nick O'Leary 2015-11-24 22:40:39 +00:00
parent 4dc60d2477
commit fceca703b3

View File

@ -495,6 +495,7 @@ module.exports = function(RED) {
setTimeout(function() {
client.connect(port, host, function() {
node.connected = true;
node.status({fill:"green",shape:"dot",text:"common.status.connected"});
client.write(msg.payload);
});
},reconnectTime);