dxos-deprecated / mesh

GNU Affero General Public License v3.0
0 stars 1 forks source link

Support on-demand direct p2p connections in swarm #13

Open dboreham opened 4 years ago

dboreham commented 4 years ago

Currently peers using a swarm form a connected graph, but not a complete graph : all peers have connections to one or more other peers, but not to every peer. This arrangement allows the primary goal that information can be propagated around the network to all nodes, but without the overhead required to maintain a potentially large number of connections on each node.

There are applications however that seem to require a "direct" transport connection between peers. Examples are voice and video calling.

Suggestion is to allow a facility in the swarm for a node to request that a connection (same kind of connection as it would otherwise make to its peers) be made to a specific peer, and that connection maintained until closed.

tinchoz49 commented 4 years ago

related: https://github.com/geut/discovery-swarm-webrtc#swconnectchannel-buffer-peerid-buffer---promisesimplepeer