How to keep the status after refresh
At current, my web messenger implemented by Jaxmpp2 are status lost after page refresh including login status, roster status and chat message. How to keep these status implemented by Jaxmpp2 while doing page refreshing?
Added by Artur Hefczyc about 5 years ago
This is client side code dependent. What we did in the past is we stored SID and RID numbers in a cookie and we loaded them after the pare reload. Then you can reuse them to connect to the old Bosh session. There is also a way to quickly reload roster, opened chat window and contact statuses using our custom thing that is Bosh cache. More details on the Bosh cache feature is in our online documentation: http://www.tigase.org/content/bosh-session-cache