You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
A STUN server must be used by both peers so that they can realize their IP address(es) and their network information. This, however, is not a big concern since there are many free and open STUN servers out there which you could use including Google's and STUN servers of other projects which use WebRTC would not be closed. Like instances of Jitsi Meet.
A Signaling server so that the peers can exchange the data about themselves to each other.
A TURN server which acts as a relay between two peers when they can't have direct access to each other. Since TURN is actually used to relay data, I doubt you could find a free server. Well, I didn't when I tried.
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
The text was updated successfully, but these errors were encountered: