A webrtc chat app made using peerjs. hosted here
open file:///peer-connect/index.html in browser in two tabs. Open console, connect one tab to other and see them talking.
if above doesn't work, try this http-server . -p 8000
and go http://127.0.0.1:8000
to see your thing.
-
how can you provision this using a single javascript?
-
Lets move out of github pages
-
create design for auto-connect (without peer-id)
-
create api design
-
Move Typescript in.
-
How to bring in authentication
-
Try multiple peer connect
- check what all ports are process using -
netstat -tulpn
- run turnserver manually
sudo turnserver -c /etc/turnserver.conf
- manage turn server
sudo systemctl stop/start/restart coturn
- check logs
journalctl -fue coturn
- create new turn users
sudo turnadmin -a -u <username> -r <realm> -p <password>
in my case realm was myturn.codes
/etc/turnserver.conf
is where conf file is./etc/default/coturn
is used to have server running from start of the server.
IPH - Iske Paise Hai
- webrtc connectivity usecases
- running your own coturn server in ec2. Mostly this and also this.
- Trickle