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
Post a Comment