Skip to content

Files

Latest commit

2821dc3 · Nov 14, 2023

History

History
This branch is 568 commits behind libp2p/rust-libp2p:master.

browser-webrtc

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