I'm developing a browser-based MUC application using ejabberd and strophe.js. The MUC client needs to visit different pages while staying in the same room. Strophe.js provides for preserving the same connection to ejabberd across page loads, so that from ejabberd's standpoint, the client has not left the room when it goes from one web page to another. That is working fine. However, when the client goes to a different page, all the html, including those that render the chat are gone when it goes from one page to another.
I was thinking about making the MUC client request ejabberd to resend the MUC history when it goes to another page. I wasn't able to find much information about that, though some posting on stackoverflow suggested sending an IQ to the room, e.g.
<iq to="room@conference.xmpp.org" type="get">
<history xmlns="http://www.jabber.org/protocol/muc#history" />
</iq>
I tried that, but it returned an error saying it's not implemented.
Could someone tell me if it's possible to ask a MUC room to resend its history, and how to do it?
Thanks for helping!