Cyberdeck
A library for easily creating WebRTC data channel connections in Rust.
let mut cd = new
.await?;
let answer = cd.set_offer.await?;
You can try out this code by going to https://jsfiddle.net/ndgvLuyc/
- Copy the code from "Browser base64 Session Description"
- Open up a terminal and type in
echo <code you copied from above> | cargo run --example simple - Copy the response code in the terminal, and past it into "Rust base64 Session Description"
- Hit connect and send messages