When a user joins ejabberd MUC, the server sends the user a complete list of numbers and chat history.
In my web client, I need to continue to overflow the page. My problem is that I lose the original information when the page is unloaded.
ATM I am working on this by serializing a list and room history for json and storing it in a cookie. However, this is a really bad idea (tm), as I can very quickly exceed the general 4k cookie limit for rooms with lots of users.
So the question is: How can I re-request the information that the server sends to the user when connected, without actually reconnecting the MUC?
One approach for registries is to send an iq request with the namespace "http://jabber.org/protocol/disco#items", but this is incomplete because it does not provide presence information or any extended information (such as real jeeps for not anonymous rooms)
source
share