javascript - How can an XMPP client retrieve online users from the server? -


i creating chat application using xmpp javascript. if log in malini@example.com, online users list, includes malini@example.com, someone@example.com. keeps on repeating same ids. why working this?

it generates id malini@example.com/somenumber, , other ids someone@example.com/somenumber. think maintaining session , keeps on generating same ids.

please me solve issue. new xmpp server.

you not "retrieve" online user server in xmpp. basically, subscribe presence, defined in xmpp rfc 6121. if contact has allowed presence, receive online users on login , change during xmpp session.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -