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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top