1
0
mirror of https://github.com/fluencelabs/rust-libp2p synced 2025-07-29 16:01:55 +00:00
Files
.github
core
docs
examples
autonat
browser-webrtc
src
static
Cargo.toml
README.md
chat
dcutr
distributed-key-value-store
file-sharing
identify
ipfs-kad
ipfs-private
metrics
ping
relay-server
rendezvous
upnp
README.md
identity
interop-tests
libp2p
misc
muxers
protocols
scripts
swarm
swarm-derive
swarm-test
transports
wasm-tests
.dockerignore
.editorconfig
.git-blame-ignore-revs
.gitignore
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
ROADMAP.md
SECURITY.md
clippy.toml
deny.toml
rust-libp2p/examples/browser-webrtc/README.md

19 lines
475 B
Markdown
Raw Normal View History

# 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](https://rustwasm.github.io/docs/wasm-pack/) to build the project for use in the browser.
## Running the example
1. Build the client library:
```shell
wasm-pack build --target web --out-dir static
```
2. Start the server:
```shell
cargo run
```
3. Open the URL printed in the terminal