Goal: Connect peers without the need for a central server
Uses WebRTC to connect peers together, which in turn necessitates the concept of a "signaling server". In our case it's currently just copy/paste and use your channel of choice to share the connection information.
- Clone this repo: https://github.com/rcasto/peer-net/
- Navigate to where you cloned the repo using the command line or tool of choice
- Run the command
npm install
- Now run the command
npm start
- Navigate to http://localhost:3000
- You're all set up!
- Must copy/paste and find outside channel to send offer/answer to other peer
- Only connects 1 peer to another peer, does not allow multiple connections building up a network
- Does not allow additional data exchange after initial connection