ezrtc
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ezrtc

Weekly Downloads

32

Version

0.6.0

License

MIT

Unpacked Size

30.5 kB

Total Files

6

Last publish

Collaborators

  • levminer