simple-xmpp / node-simple-xmpp

Simple High Level NodeJS XMPP Client
302 stars 90 forks source link

GetPresence #59

Open mathis94 opened 9 years ago

mathis94 commented 9 years ago

Is there any way using your code to search all people who has a specific presence. For example the list of people who has the status "eating" Thank you

Mo33n commented 8 years ago

xmpp.on('buddy', function(jid, state, statusText,resource) { console.log('%s is in %s state - %s -%s', jid, state, statusText,resource); });

statusText is the custom text message of the buddy , the better solution for your query is to keep your custom data structure on the server ,and keep updating/filtering it as per your need.