Crates.io | wasm-peers-signaling-server |
lib.rs | wasm-peers-signaling-server |
version | 0.4.0 |
source | src |
created_at | 2022-02-07 21:25:35.655397 |
updated_at | 2023-06-15 10:21:29.271382 |
description | Easy-to-use wrapper for WebRTC DataChannels peer-to-peer connections written in Rust and compiling to WASM. |
homepage | |
repository | https://github.com/wasm-peers/wasm-peers |
max_upload_size | |
id | 528649 |
size | 61,178 |
This crate provides a signaling server implementation compatible with wasm-peers crate.
To learn more, check out main README of the project.
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.