Open martin-v opened 3 years ago
That's a feature I've wanted to add for a while now, but it's not on the roadmap yet. The codebase for this project is horribly antiquated and I've been working on a more modern rewrite.
Synchronization is a feature we've heavily discussed in the past, and there have been many methods that have been requested to be implemented. I'm not sure it'll be realistic to accommodate all of them, but there will definitely be a p2p implementation of some sort!
You could use DataChannel of WebRTC to sync between two devices(or more if you sync them in pair) but there are many things in WebRTC which are not P2P:
EDIT: Without a TURN server, two devices might not be able to sync if they're on different networks.
Examples implementing something like that:
https://github.com/earthstar-project/earthstar https://github.com/orbitdb/example-orbitdb-todomvc https://github.com/arj03/ssb-browser-demo