Replies: 1 comment
-
👋 Hi @laptou,
Instead, as you suggested What I would do when building a basic example is connect to nodes discovered through mdns. The gossipsub subsystem will be notified of the new connection and then keep track of the peer. Something along the lines of
Same here, calling the internal
Note: You could as well just call Let us know if the above is of any help. Curious what you end up building. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to adapt the chat example here (the one that uses Floodsub with mDNS) to use Gossipsub instead, but I can't figure it out. Here's what I tried:
But this doesn't work when I try to publish a message: I get the error that there are insufficient peers.
I also tried using
add_explicit_peer()
, and it did work, but I'm not sure if it's actually doing what I want it to do.Beta Was this translation helpful? Give feedback.
All reactions