mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Add mqlight node error handler
This commit is contained in:
parent
a886b663f8
commit
2c242c76c7
@ -75,6 +75,11 @@ module.exports = function(RED) {
|
||||
}
|
||||
node.send(msg);
|
||||
});
|
||||
recvClient.on("error", function(err) {
|
||||
if (err) {
|
||||
node.error(err.toString());
|
||||
}
|
||||
});
|
||||
var subscribeCallback = function(err) {
|
||||
if (err) {
|
||||
node.error("Failed to subscribe: " + err);
|
||||
@ -129,6 +134,12 @@ module.exports = function(RED) {
|
||||
});
|
||||
});
|
||||
});
|
||||
sendClient.on("error", function(err) {
|
||||
if (err) {
|
||||
node.error(err.toString());
|
||||
}
|
||||
});
|
||||
|
||||
sendClient.start();
|
||||
|
||||
node.on("close", function (done) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-mqlight",
|
||||
"version" : "0.0.3",
|
||||
"version" : "0.0.4",
|
||||
"description" : "A Node-RED node to send and receive message from IBM MQ Light",
|
||||
"dependencies" : {
|
||||
"mqlight" : "1.0.x"
|
||||
|
Loading…
x
Reference in New Issue
Block a user