Files
webrtc/examples/data-channels-detach-create
backkem f1c3fb8e81 Change detach to interface
This is in preparation of a JS/WASM shim.
2019-04-01 15:40:45 +02:00
..
2019-04-01 15:40:45 +02:00

data-channels

data-channels-detach-create is an example that shows how you can detach a data channel. This allows direct access the the underlying pions/datachannel. This allows you to interact with the data channel using a more idiomatic API based on the io.ReadWriteCloser interface.

The example mirrors the data-channels-create example.

Install

go get github.com/pions/webrtc/examples/data-channels-detach-create

Usage

The example can be used in the same way as the data-channel example or can be paired with the data-channels-detach example. In the latter case; run both example and exchange the offer/answer text by copy-pasting them on the other terminal.