Code from the Liveblocks sync-engine page.
Vendored for reference in the private repo. Not published as installable source from this site.