Levminer / ezrtc

Easy cross-platform WebRTC communication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezrtc

  • 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.

Client

  • A simple WebRTC client that connects to the signaling server using WebSockets.

NPM Version NuGet Version

JavaScript

  • 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"
})

C#

  • Install the package using NuGet: dotnet add package ezrtc
  • Example usage:
// Host

// Client

Server

Crates.io Version

  • A simple signaling server that allows multiple clients to connect to each other and exchange data using WebSockets.

Credits

About

Easy cross-platform WebRTC communication

License:MIT License


Languages

Language:Rust 52.8%Language:C# 22.2%Language:TypeScript 22.0%Language:Dockerfile 3.0%