cozy-labs / cozy-desktop

File Synchronisation for Cozy on Desktop and Laptop
https://cozy-labs.github.io/cozy-desktop/
GNU Affero General Public License v3.0
98 stars 45 forks source link

feat: Fetch remote changes upon realtime events #2298

Closed taratatach closed 1 year ago

taratatach commented 1 year ago

We now subscribe to created, updated and deleted realtime events on io.cozy.files documents to detect as soon as possible when documents were modified on the remote Cozy.

When we received one of these events, we'll enqueue a remote watcher run request and use our classic mechanism to fetch and merge remote changes.

Since fetching and merging remote changes consumes time and resources, we'll limit the number of requests enqueued via a debounce mechanism:

Please make sure the following boxes are checked: