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