Skip to content

Any ideas on how to use libp2p in a Tauri app? #5078

Answered by thomaseizinger
Insopitus asked this question in Q&A
Discussion options

You must be logged in to vote

Swarm is like a Future or Stream, it needs to be polled continuously to make progress. Most likely, a better approach would be to follow the file-sharing example (https://github.com/libp2p/rust-libp2p/tree/master/examples/file-sharing), spawn a separate event loop and share a Control across your app that allows you to send message to the event loop.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Insopitus
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