simple-xmpp/node-simple-xmpp

can't see invitation

Opened this issue · 2 comments

The bot is not able to see invitation from new friends. Is there anyone else having the same issue? I've tried to put the bot account in either gtalk or hangout mode. Neither works.

xmpp.on('subscribe', function(from) {

    console.log("invited by" + from);

xmpp.acceptSubscription(from);

});
there is no console message showing this event was triggered. help please!

Kindly use the following code to track down the presence stanza that the bot is receiving.
and copy paste that here.

xmpp.on('stanza', function(stanza) {
console.log(stanza);
});

Thanks