perge
perge copied to clipboard
Sync old docs with new peers
I'm having some issue on my end with this use case:
- Peer A select ("doc_id_1") and made changes without any peer connection
- Peer B connects to Peer A for the first time
- Peer B couldn't discover document doc_id_1 among the docset
On top of this, any subsequent changes (new doc) from either Peer A or Peer B are not synced. The only case it would work is if they are connected before any documents are created on either side.
Is syncing previously created doc supported by the libraries? If so what could be some possible reasons that lead to the failure of syncing?
Thanks!
@Simonl07 Did you find a solution for your issue above?
The problem also exists, when there are already peers connected and have already made changes. When additional peers connect, they don't receive any changes made by the first 2 connected peers.
Changes made by the third peer arrive at the peer the third peer has connected to, but shows up only in a peerjs event handler, not with automerge sync.
Any tips to get this working?
I had similar issues, ended up switching to the new sync protocol they added to automerge: https://github.com/automerge/automerge/blob/main/SYNC.md