404 Invalid SID Value In Strophe While Using Attach()
I attempted to find an answer to my question with the search engine but i was unable to. I'm using strophe.muc.js in my backboen project in order to make it real time website. And
Solution 1:
In case anyone has met the same problem as me, I've done it by adjusting my code above a little bit (changing the place off setting the rid
, sid
, and jid
from join()
to $(window).unload()
.
$(window).unload(function() {
sessionStorage.setItem("rid",self.connection.rid);
sessionStorage.setItem("sid",self.connection.sid);
sessionStorage.setItem("jid",self.connection.jid);
});
No need to increase rid
.
Post a Comment for "404 Invalid SID Value In Strophe While Using Attach()"