matrix-js-sdk
4d46251b - Just use the keepalive logic to recover from lost internet connections.

Commit
9 years ago
Just use the keepalive logic to recover from lost internet connections. * This should fix the problem where we could end up with two concurrent syncs due to both retrying /sync and hitting /versions. There is now one and only one mechanism for connection recovery. * Hit /versions a little less often as I think every 2 seconds is a little over-aggressive. Also introduce randomness to minimize possibility of thundering herds. * Add a listener for the 'online' event in case any browser is nice enough to ever fire it. * Treat a 400 response from /versions as successful since older synapses will not support it.
Author
Parents
Loading