jarust_make_plugin 0.1.0

A janus client SDK in Rust
Documentation

About Jarust

Jarust is a Rust adapter for Janus WebRTC server

Interally uses WebSockets to connect to Janus.

The library wraps the Janus core API and some of the most popular plugins APIs.

Example Usage

This is just a pretty simple hello world for the echotest plugin.

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let mut connection = jarust::connect(JaConfig::new(
        "wss://janus.conf.meetecho.com/ws",
        None,
        TransportType::Wss,
        "janus",
    ))
    .await?;

    let session = connection.create(10).await?;
    let handle = session.attach("janus.plugin.echotest").await?;
}