SQLSync: A collaborative offline-first wrapper around SQLite
github.com
github.com
But I figured it out; opening the dev tools for the shared worker, one can see that it does a websocket connection upgrade when the page is reloaded.
The github reads "designed to synchronize web application state". But, what if I also have e.g. an Android app and would like to synchronize state with it also? Is that out of scope or something considered for the future?
Edit: This issue seems promising: https://github.com/orbitinghail/sqlsync/issues/46
Yes, that's in the roadmap and will be much easier to do once I release the new storage engine I'm building. It's going to be a native vanilla SQLite extension which will be trivial to integrate into any environment that can already run SQLite (assuming the env allows extensions).
I can't tell exactly from your question if you're asking about the client going offline before or after making the change, or before or after recieving the server's version of the change, but either way the servers version wins and the client will have to catch up after it's back online.