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

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

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -