-
General problem statementI would like to implement a p2p network, using libp2p, with the following features:
As far as I understand, I need to include the following behaviours in my swarm:
Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would also suggest
The way I do it is i would make sure the relay server is connected to and tracking the
When you call The way I would do it is i would check track the connections and return a list of addresses associated to that peer. Eg, call |
Beta Was this translation helpful? Give feedback.
I would also suggest
Ping
behaviour too otherwise you may timeout get timeout or disconnection sometime after the connection. May also suggestAutoNat
to determine the peer nat status too.The way I do it is i would make sure the relay server is connected to and tracking the
ConnectionId
(you dont really have to do this though), and possibly wait for