xmpp-bosh-client icon indicating copy to clipboard operation
xmpp-bosh-client copied to clipboard

How to handle disconnects correctly?

Open oliverschulze opened this issue 5 years ago • 1 comments

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!

oliverschulze avatar Oct 06 '19 22:10 oliverschulze