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) {
|
||||
//xmpp.setPresence('offline');
|
||||
xmpp.setPresence('offline');
|
||||
xmpp.disconnect();
|
||||
if (xmpp.conn) { xmpp.conn.end(); }
|
||||
xmpp = null;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-xmpp",
|
||||
"version" : "0.1.2",
|
||||
"version" : "0.1.3",
|
||||
"description" : "A Node-RED node to talk to an XMPP server",
|
||||
"dependencies" : {
|
||||
"simple-xmpp" : "1.3.*"
|
||||
|
Loading…
Reference in New Issue
Block a user