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",