Question

I am using strophe.js to intract with xmpp . it has the feature to restore its states when network fluctuate. this work okay for short time but when network got connected after 5 to 10 min fater disconnection it didnt restore its connection. any ideas why this it is so?

Was it helpful?

Solution

You can use connection manager for this. see this one

Basically what you to do is that start a timer when network get disconnected and in that timer check network connection. once network found connected relogin the strophe to make it working.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top