mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
set xmpp presence offline on close
This commit is contained in:
parent
f3b315ea7c
commit
32706ff92c
@ -125,7 +125,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
node.on("close", function(done) {
|
node.on("close", function(done) {
|
||||||
//xmpp.setPresence('offline');
|
xmpp.setPresence('offline');
|
||||||
xmpp.disconnect();
|
xmpp.disconnect();
|
||||||
if (xmpp.conn) { xmpp.conn.end(); }
|
if (xmpp.conn) { xmpp.conn.end(); }
|
||||||
xmpp = null;
|
xmpp = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-xmpp",
|
"name" : "node-red-node-xmpp",
|
||||||
"version" : "0.1.2",
|
"version" : "0.1.3",
|
||||||
"description" : "A Node-RED node to talk to an XMPP server",
|
"description" : "A Node-RED node to talk to an XMPP server",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"simple-xmpp" : "1.3.*"
|
"simple-xmpp" : "1.3.*"
|
||||||
|
Loading…
Reference in New Issue
Block a user