You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
I have written a XMPP bot that lives in our MUC chatroom. I am wondering if there is a way to detect who are currently in the XMPP chatroom with simple-xmpp.
Thanks!
The text was updated successfully, but these errors were encountered:
You can always just proxy to node-xmpp using xmpp.conn if you wanted. note: this is untested code
varxmpp=require('simple-xmpp');varstanza=newxmpp.Element('iq',{from: '[email protected]',to: '[email protected]',type: 'get',id: 'muc_id'}).c('query',{xmlns: 'http://jabber.org/protocol/disco#items'});xmpp.conn.send(stanza);xmpp.on('stanza',function(stanza){if(stanza.name=='iq'&&stanza.attrs.type=='result'&&stanza.attrs.id=='muc_id'){// stanza.children[0].children should have your users available in the room}});
I have written a XMPP bot that lives in our MUC chatroom. I am wondering if there is a way to detect who are currently in the XMPP chatroom with simple-xmpp.
Thanks!
The text was updated successfully, but these errors were encountered: