From 85ddffb98f4805cf798619df0e4b9ffa2effb49e Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 15 Aug 2018 22:17:32 +0100 Subject: [PATCH] Ensure stomp retconnect retry default to close #478 --- io/stomp/18-stomp.js | 4 ++-- io/stomp/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index 62fa5044..80652903 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -10,8 +10,8 @@ module.exports = function(RED) { this.port = n.port; this.protocolversion = n.protocolversion; this.vhost = n.vhost; - this.reconnectretries = n.reconnectretries; - this.reconnectdelay = n.reconnectdelay * 1000; + this.reconnectretries = n.reconnectretries || 999999; + this.reconnectdelay = (n.reconnectdelay || 15) * 1000; this.name = n.name; this.username = this.credentials.user; this.password = this.credentials.password; diff --git a/io/stomp/package.json b/io/stomp/package.json index 59bca968..68923293 100644 --- a/io/stomp/package.json +++ b/io/stomp/package.json @@ -1,9 +1,9 @@ { "name" : "node-red-node-stomp", - "version" : "0.0.10", + "version" : "0.0.11", "description" : "A Node-RED node to publish and subscribe to/from a Stomp server", "dependencies" : { - "stomp-client" : "0.8.*" + "stomp-client" : "^0.9.0" }, "repository" : { "type":"git",