holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.04k stars 84 forks source link

Emit event when a peer you've already connected to is found for another topic #33

Closed RangerMauve closed 4 years ago

RangerMauve commented 4 years ago

Some peers will be advertising on multiple topics that you both share. Instead of establishing a new connection to that peer per topic, it'd be useful to let the application optionally multiplex existing connections.

For example, if I subscribe to topic foo, and find a peer, then subscribe to topic bar, and find that same peer again, I'd like to be able to ask peer for bar over our foo connection instead of establishing a new tunnel.

This should help for applications like collaborative editors that might have a large amount of hyperdrives or hypercores shared between a few peers.

cc @pvh

mafintosh commented 4 years ago

Yep, we are already working on this - should land soon

RangerMauve commented 4 years ago

Any updates?

mafintosh commented 4 years ago

got released