Skip to content

How to send messages using libp2p through a functions in Rust? #5505

Answered by oblique
MehranMazhar asked this question in Q&A
Discussion options

You must be logged in to vote

If you want something flexible and high-level then I suggest you to have the libp2p loop in a task and communicate with it with channels. I'm personally using the Actors with Tokio pattern. You can check the code of the project I'm working on.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MehranMazhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants