mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 19:02:13 +00:00
Introduce the new `libp2p::SwarmBuilder`. Users should use the new `libp2p::SwarmBuilder` instead of the now deprecated `libp2p::swarm::SwarmBuilder`. See `libp2p::SwarmBuilder` docs on how to use the new builder. Fixes #3657. Fixes #3563. Fixes #3179. Pull-Request: #4120.
Rust-libp2p Browser-Server WebRTC Example
This example demonstrates how to use the libp2p-webrtc-websys
transport library in a browser to ping the WebRTC Server.
It uses wasm-pack to build the project for use in the browser.
Running the example
- Build the client library:
wasm-pack build --target web --out-dir static
- Start the server:
cargo run
- Open the URL printed in the terminal