Original description:
Basically it would work like a PEX message in BitTorrent except it would work with the 2 way handshake WebRTC requires.
Considering something like this
- Peer A and B are connected to each other
- Peer A in addition know about peer C
- Peer A sends an extension message to B saying he knows about C
- Peer B replies with signalling data which A forwards to C.
- Peer C replies back with the other part of the signalling handshake that A forwards back to B
- B and C are now directly connected using no centralised servers :)
My question is, what would be a good way to present this as an interface to the end user? It seems like the right interface might differ greatly depending on the appplication, e.g. whether the nodes are in a DHT or a mesh. My idea right now is a layer on top of webrtc-swarm that makes the swarm act like a signalhub.
@mafintosh here is a possible building block for a swarm-based signaling system. The idea is to make a webrtc-swarm present the same interface as a signalhub. That way, discovery information could be shared across the swarm.