| Crates.io | webrtc-signal-server |
| lib.rs | webrtc-signal-server |
| version | 0.1.1 |
| created_at | 2025-05-08 09:23:15.705697+00 |
| updated_at | 2025-05-08 09:53:34.909631+00 |
| description | General WebRTC signal server For Peer to Peer Communication |
| homepage | |
| repository | https://github.com/stars-labs/cypto-rust-tools |
| max_upload_size | |
| id | 1665067 |
| size | 28,871 |
A general WebRTC signal server for peer-to-peer communication, written in Rust and powered by async networking and WebSockets.
Add to your workspace or build as a standalone binary:
cargo build --release
Run the server (default port: 9000):
cargo run --release
The server listens for WebSocket connections on 0.0.0.0:9000.
Clients communicate with the server using JSON messages:
{ "type": "register", "peer_id": "your-unique-id" }
{ "type": "list_peers" }
{ "type": "relay", "to": "target-peer-id", "data": { ... } }
{ "type": "peers", "peers": ["peer1", "peer2"] }
{ "type": "relay", "from": "peer1", "data": { ... } }
{ "type": "error", "error": "description" }
MIT OR Apache-2.0