-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo code for [generate|recieve]SyncMessage #418
Comments
Just to orient you, the Each change is written to localStorage as it happens and is compacted every 100 changes to reduce storage size. (That's DB.js's job.) Although it's written in Svelte there's basically nothing svelte-specific here if you (as I expect) are using React you should find it straightforward to just lift the bits you need. If not, let me know and we can sort it out together. Good luck and don't hesitate to ask questions and/or muse out loud about confusing bits. |
Thank you so much @pvh! Picking through it now. 👍 |
…der_include Expose `Vec<automerge::Change>` initialization and `automerge::AutoCommit::with_actor()` to the C API
(I'm new to automerge (and crdt in general) please be gentle! 😅)
I'm finding it difficult to get the "1.0" sync protocol working. No errors, but also no syncing. I must be doing something wrong. I'm on the latest (preview-4).
Sync doc are nice and detailed, but I would find it even more helpful with some "live" demo code, including simulated data transport. The current code snippets seem mostly indicative; they're not meant to be run as is.
Pushpin doesn't seem to use the sync protocol (I can't find
generateSyncMessage
anywhere in the code). Am I missing an existing demo?The code in the sync tests seem pretty informative, perhaps that could be adapted?
The text was updated successfully, but these errors were encountered: