Cyberdeck
A library for easily creating WebRTC data channel connections in Rust.
let mut peer = new
.await?;
let answer = peer.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
Signaling server
WebRTC works in it's most basic form by having the client and server exchange strings that represent their networking information. A signaling server is just some API that you exchange that information through. You can see a simple signaling server implemented with a single POST http handler here in this example here.
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.