rtc-examples 0.9.0

Examples of WebRTC.rs stack with SansIO RTC API
Documentation
# data-channels

data-channels is a WebRTC.rs application that shows how you can send/recv DataChannel messages from a web browser

## Instructions

### Open data-channels example page

[jsfiddle.net](https://jsfiddle.net/e41tgovp/)

### Run data-channels, with your browsers SessionDescription as stdin

In the jsfiddle the top textarea is your browser's session description, copy that and:

#### Linux/macOS

Run `echo $BROWSER_SDP | cargo run --example data-channels`

#### Windows

1. Paste the SessionDescription into a file.
1. Run `cargo run --example data-channels < my_file`

### Input data-channels's SessionDescription into your browser

Copy the text that `data-channels` just emitted and copy into second text area

### Hit 'Start Session' in jsfiddle

Under Start Session you should see 'Checking' as it starts connecting. If everything worked you should see `connected`

Now you can put whatever you want in the `Message` textarea, and when you hit `Send Message` it should appear in your terminal!

Congrats, you have used WebRTC.rs!