- Easy cross-platform WebRTC communication with a simple signaling server.
- Currently supports: JavaScript, C#, Rust.
[!WARNING] Ezrtc is currently unstable and not recommended for production use. The API is subject to change.
- A simple WebRTC client that connects to the signaling server using WebSockets.
- Install the package using npm:
npm i ezrtc
- Example usage:
// Host
import { EzrtcHost } from "ezrtc"
let host = new EzrtcHost("wss://test.levminer.com/one-to-many", "random_session_id")
setInterval(() => {
host.sendMessageToAll("test message")
}, 1000)
// Client
import { EzrtcClient } from "ezrtc"
let client = new EzrtcClient("wss://test.levminer.com/one-to-many", "random_session_id")
client.onMessage((message) => {
console.log(message) // "test message"
})
- Install the package using NuGet:
dotnet add package ezrtc
- Example usage:
// Host
// Client
- A simple signaling server that allows multiple clients to connect to each other and exchange data using WebSockets.
- Server based on: wasm-peers
- Licensed under MIT