Closed RangerMauve closed 4 years ago
You can do that today using the info object. I think the method is info.reconnect(false)
How do I get the info object from a swarm instance?
Oh, I think I get it. When I get the peer
event, that's where I'd invoke info.reconnect(false)
which would prevent the initial connection?
Except that you don't have info
in peer
event :joy:
@indutny ah you wanna configure peer stuff before a connection happens?
I probably don't. Was just browsing through the issues to see if there is anything useful for my case.
you use the companion object next to the connection in the 'connection' event to manage all this
It'd be nice to be able to disable the auto-connection feature for cases where it'd be handy to control that at the application level.