Increase xmpp connection timout

This commit is contained in:
Dave Conway-Jones 2021-05-06 14:48:43 +01:00
parent c890ca57d5
commit c4cb92cd61
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 4 additions and 2 deletions

View File

@ -42,9 +42,11 @@ module.exports = function(RED) {
this.client = client({
service: proto+'://' + this.server + ':' + this.port,
username: this.username,
password: this.password
password: this.password,
timeout: 60000
});
this.client.timeout = 60000;
// helper variable for checking against later, maybe we should be using the client
// object directly...
this.connected = false;

View File

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