Cyberdeck
A library for easily creating WebRTC data channel connections in Rust.
[]
= "0.0.12"
let mut cd = new
.await?;
let answer = cd.receive_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 receiver - Copy the response code in the terminal, and past it into "Rust base64 Session Description"
- Hit connect and send messages
Limitations:
- Right now this only seems to work app to website. Not quite sure how to handle ICE servers yet. If you want to test this out though:
cargo run --example offer- copy the code
echo <code you copied from above> | cargo run --example receiver- copy the code the receiver app gives you
- paste the code into the terminal of the offer app and press enter
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in cyberdeck by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.