Data channel example
Example
In the repository root directory you can find some simple examples. Click here for data channel example.
This simple project demonstrates how to setup WebRTC connection using peer-data with data channel.
To run this example simple clone the repository and perform the following from the root directory:
➜ examples git:(master) ✗ cd data-channel
➜ data-channel git:(master) ✗ yarn
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.13s.
➜ data-channel git:(master) ✗ yarn start
$ node server.js
Server started at port 3000
Then open http://localhost:3000/.