Replies: 1 comment
-
The API of gossipsub is documented here: https://docs.rs/libp2p-gossipsub/0.45.1/libp2p_gossipsub/struct.Behaviour.html#implementations Subscribing returns you a bool whether or not you've been subscribed: https://docs.rs/libp2p-gossipsub/0.45.1/libp2p_gossipsub/struct.Behaviour.html#method.subscribe Once you are subscribed, you will receive events: https://docs.rs/libp2p-gossipsub/0.45.1/libp2p_gossipsub/enum.Event.html
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It's me again, im trying to use rust libp2p gossipsub, is there a way to do
envelope, err := sub.Next(ctx)
wheresub = th.Subscribe(pubsub.WithBufferSize(P2P_SUBSCRIPTION_BUFFER_SIZE))
, as you can see this is in Go, I want to see if i can iterate over gossipsub subscription stream in rust.Beta Was this translation helpful? Give feedback.
All reactions