The Body Ewah 2
webrtc setup (Link)
- cd express_server –> npm run watch
- cd browser_client –> python -m SimpleHTTPServer 8000
- cd (the folder ngrok is at) –> ./ngrok http 80
- p5.js editor –> upload webrtc_peer_client.js –> put in index.html –> write code in sketch.js
In the sketch.js,
- const mirror = false;
- WebRTCPeerClient.setDebug(false);
- WebRTCPeerClient.initSocketClient(‘ngrok link from the terminal’);
* it should be https not http