[Examples] Add WebRTC DataChannel example (#2131)

* Add WebRTC DataChannel example

* Add guide

* Fix format

* Use webpack to build example
This commit is contained in:
Yuji Sugiura
2020-05-13 04:00:33 +09:00
committed by GitHub
parent 6b5f7342a7
commit f94e3772bb
9 changed files with 288 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# WebRTC DataChannel Example
[View documentation for this example online][dox] or [View compiled example
online][compiled]
[compiled]: https://rustwasm.github.io/wasm-bindgen/exbuild/webrtc_datachannel/
[dox]: https://rustwasm.github.io/wasm-bindgen/examples/webrtc_datachannel.html
You can build the example locally with:
```
$ npm run serve
```
and then visiting http://localhost:8080 in a browser should run the example!