async-datachannel-wasm
Async wrapper API for browser provided WebRTC API.
Quickstart
use ;
use ;
let ice_servers = vec!;
let conf = new;
let = channel;
let = channel;
let listener = new?;
// TODO: Wire up `tx_sig_inbound` and `rx_sig_outbound` to a signalling
// mechanism.
let mut dc = listener.dial.await?;
dc.write.await?;
let mut buf = vec!;
let n = dc.read.await?;
assert_eq!;
License
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 the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.