Max Inden d605255fec
feat(libp2p): add SwarmBuilder
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.
2023-10-10 06:55:14 +00:00
..
2023-10-10 06:55:14 +00:00

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

  1. Build the client library:
wasm-pack build --target web --out-dir static
  1. Start the server:
cargo run
  1. Open the URL printed in the terminal