webrtc-signal-server
A general WebRTC signal server for peer-to-peer communication, written in Rust and powered by async networking and WebSockets.
Features
- Simple WebSocket-based signaling for WebRTC peers
- Peer registration and discovery
- Message relay between peers
- Asynchronous, scalable, and easy to deploy
Usage
Add to your workspace or build as a standalone binary:
Run the server (default port: 9000):
The server listens for WebSocket connections on 0.0.0.0:9000
.
Protocol
Clients communicate with the server using JSON messages:
Register
List Peers
Relay Message
Server Responses
- List of peers:
- Relayed message:
- Error:
License
MIT OR Apache-2.0