xmpp-bosh-client
xmpp-bosh-client copied to clipboard
How to handle disconnects correctly?
Hi,
I have created a test client and tested what happens, when the network connection goes down temporarily.
At the moment the error-Event is called with the error: "Error: XHR error" On this error, I tried again:
client.connect();
But this did not work.
I thought the underlying library would handle network issues on their own, but it does not seem to do so.
So what is the best way to handle network issues with this library?
Thank you!