mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix as proposed to close #319
(assuming this node is still relevant :-)
This commit is contained in:
parent
2413738082
commit
9a17460b0e
@ -48,11 +48,10 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
if (node.serviceConfig) {
|
if (node.serviceConfig) {
|
||||||
if (node.serviceConfig.client) {
|
if (node.serviceConfig.client) {
|
||||||
var recvClient;
|
var recvClient = node.serviceConfig.client;
|
||||||
recvClient.on("error", function(err) {
|
recvClient.on("error", function(err) {
|
||||||
if (err) { node.error(err.toString()); }
|
if (err) { node.error(err.toString()); }
|
||||||
});
|
});
|
||||||
recvClient = node.serviceConfig.client;
|
|
||||||
recvClient.on("started", function() {
|
recvClient.on("started", function() {
|
||||||
recvClient.on("message", function(data, delivery) {
|
recvClient.on("message", function(data, delivery) {
|
||||||
if (node.topic === delivery.destination.topicPattern) {
|
if (node.topic === delivery.destination.topicPattern) {
|
||||||
@ -105,11 +104,10 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
if (node.serviceConfig) {
|
if (node.serviceConfig) {
|
||||||
if (node.serviceConfig.client) {
|
if (node.serviceConfig.client) {
|
||||||
var sendClient;
|
var sendClient = node.serviceConfig.client;
|
||||||
sendClient.on("error", function(err) {
|
sendClient.on("error", function(err) {
|
||||||
if (err) { node.error(err.toString()); }
|
if (err) { node.error(err.toString()); }
|
||||||
});
|
});
|
||||||
sendClient = node.serviceConfig.client;
|
|
||||||
sendClient.on("started", function () {
|
sendClient.on("started", function () {
|
||||||
node.on("input", function(msg) {
|
node.on("input", function(msg) {
|
||||||
var topic = node.topic;
|
var topic = node.topic;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-mqlight",
|
"name" : "node-red-node-mqlight",
|
||||||
"version" : "0.0.10",
|
"version" : "0.0.11",
|
||||||
"description" : "A Node-RED node to send and receive message from IBM MQ Light",
|
"description" : "A Node-RED node to send and receive message from IBM MQ Light",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"mqlight" : "1.0.x"
|
"mqlight" : "1.0.x"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user