hyperhyperspace / hyperhyperspace-core

A library to create p2p applications, using the browser as a full peer.
https://www.hyperhyperspace.org
MIT License
195 stars 12 forks source link

Mesh/peer abstractions don't have a way to express only-send or only-receive relationships for sync #41

Open micahscopes opened 1 year ago

sbazerque commented 1 year ago

At the moment, the Peer & PeerGroup abstractions are unaware of the gossip / sync layers that are built on top of them.

A member of a peer group can either send messages to another peer or to all peers it is currently connected to within the group. Gossip and sync are built on that abstraction. The "sharing" and "fetching" parts are two different modules within the sync agent, so it would be possible to configure the agent to do only one of the two functions. The part that seems more cumbersome is indicating which peer is in which mode with respect to each sync target.