You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
* 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.
119 KiB
119 KiB