matrix-js-sdk
197144dc - Implement a keep-alive timer for /sync requests

Commit
9 years ago
Implement a keep-alive timer for /sync requests When a /sync request fails, we spin up a keep-alive poll to /_matrix/client/r0 which 400s. We treat any HTTP response code as a success for the purposes of polling the server. When a successful poll is done, we shoot the current /sync request in the head immediately (via a hacky abort() on the promise) and retry the /sync.
Author
Parents
Loading