hyperdiscovery
hyperdiscovery copied to clipboard
leave vs close connections
Closing the connection isn't the same behavior as discovery swarm. I think it might be nice to keep the api consistent, there are use cases where you want to stop announcing but still keep connections open. 'close' or "destroy" can be the thing that kills the connections as well as stops announcing.
We could use close/destroy but would need to have an API for destroing single feed vs the whole swarm.
i think its okay to just close the whole swarm and if you want to close a particular feed you can do that using the swarm.connections
let's try to minimize the amount of extra api work we're doing