wasm-peers-signaling-server

Crates.iowasm-peers-signaling-server
lib.rswasm-peers-signaling-server
version0.4.0
sourcesrc
created_at2022-02-07 21:25:35.655397
updated_at2023-06-15 10:21:29.271382
descriptionEasy-to-use wrapper for WebRTC DataChannels peer-to-peer connections written in Rust and compiling to WASM.
homepage
repositoryhttps://github.com/wasm-peers/wasm-peers
max_upload_size
id528649
size61,178
Tom Karwowski (tomkarw)

documentation

README

wasm-peers-signaling-server

This crate provides a signaling server implementation compatible with wasm-peers crate.

To learn more, check out main README of the project.

Usage

The server is available on crates.io and installable with cargo install.

Just run:

cargo install wasm-peers-signaling-server
# by default server runs on 127.0.0.1:9001
wasm-peers-signaling-server 0.0.0.0:9001

Alternatively theres is a Dockerfile in the repo root, and available on Docker Hub.

Now you can take the public IP address of the server and provide it to an instance of network manager from the main crate.

This server provides 3 endpoints, which one you should use depends on the chosen topology:

  • ws://<ip-address>:<port>/one-to-one - for one-to-one connections.
  • ws://<ip-address>:<port>/one-to-many - for one-to-many connections.
  • ws://<ip-address>:<port>/many-to-many - for many-to-many connections.
Commit count: 122

cargo fmt