Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top