msg var not used

This commit is contained in:
Oren Zomer 2015-11-03 00:05:38 +02:00
parent acb4b6ad12
commit 1808b43893

View File

@ -61,7 +61,6 @@ module.exports = function(RED) {
var node = this; var node = this;
var msg = {topic:this.topic}; var msg = {topic:this.topic};
node.client = new StompClient(node.stompClientOpts); node.client = new StompClient(node.stompClientOpts);
node.client.on("connect", function() { node.client.on("connect", function() {
@ -130,10 +129,7 @@ module.exports = function(RED) {
} }
var node = this; var node = this;
var msg = {topic:this.topic};
node.client = new StompClient(node.stompClientOpts); node.client = new StompClient(node.stompClientOpts);
node.status({fill:"grey",shape:"ring",text:"connecting"});
node.client.on("connect", function() { node.client.on("connect", function() {
node.status({fill:"green",shape:"dot",text:"connected"}); node.status({fill:"green",shape:"dot",text:"connected"});
@ -149,6 +145,7 @@ module.exports = function(RED) {
node.warn(error); node.warn(error);
}); });
node.status({fill:"grey",shape:"ring",text:"connecting"});
node.client.connect(function(sessionId) { node.client.connect(function(sessionId) {
}, function(error) { }, function(error) {
node.status({fill:"grey",shape:"dot",text:"error"}); node.status({fill:"grey",shape:"dot",text:"error"});
@ -169,4 +166,4 @@ module.exports = function(RED) {
} }
RED.nodes.registerType("stomp out",StompOutNode); RED.nodes.registerType("stomp out",StompOutNode);
} };