rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.01k stars 37 forks source link

Link broken #1051

Closed AdditionAddict closed 11 months ago

AdditionAddict commented 11 months ago

https://doc.replicache.dev/concepts/faq

pullInterval leads to 404 https://doc.replicache.dev/concepts/api/interfaces/ReplicacheOptions#pullInterval

How does the client know when to sync? Does it poll?

Typically, servers send a poke (a content-less hint) over a websocket to tell the client to sync. There are many services you can use for this, and since no content flows over the socket there is no security/privacy concern. See the integration guide for more information.

Replicache also polls at a low interval (60s by default) in case the poke mechanism fails or for applications that don't require low latency updates. You can adjust this using the pullInterval field.

aboodman commented 11 months ago

Thanks for the report, fixed.