Merge branch 'master' of github.com:node-red/node-red-nodes

This commit is contained in:
Andreas Martens
2020-10-21 14:20:50 +01:00
38 changed files with 543 additions and 118 deletions

View File

@@ -155,7 +155,7 @@ module.exports = function(RED) {
}
}
else if(stanza.attrs.type === 'result'){
// AM To-Do check for 'bind' result with our current jid
// To-Do check for 'bind' result with our current jid
var query = stanza.getChild('query');
if (RED.settings.verbose || LOGITALL) {that.log("result!");}
if (RED.settings.verbose || LOGITALL) {that.log(query);}
@@ -164,7 +164,6 @@ module.exports = function(RED) {
}
});
// We shouldn't have any errors here that the input/output nodes can't handle
// if you need to see everything though; uncomment this block
// this.client.on('error', err => {
@@ -497,6 +496,10 @@ module.exports = function(RED) {
node.error("Server doesn't exist "+xmpp.options.service,err);
node.status({fill:"red",shape:"ring",text:"bad address"});
}
if (err.errno === "ENOTFOUND") {
node.error("Server doesn't exist "+xmpp.options.service,err);
node.status({fill:"red",shape:"ring",text:"bad address"});
}
else if (err === "XMPP authentication failure") {
node.error(err,err);
node.status({fill:"red",shape:"ring",text:"XMPP authentication failure"});

View File

@@ -1,6 +1,6 @@
{
"name": "node-red-node-xmpp",
"version": "0.2.4",
"version": "0.3.0",
"description": "A Node-RED node to talk to an XMPP server",
"dependencies": {
"@xmpp/client": "^0.11.1"