Realtime, Multi-Peer Video calling and chat app with websockets and WebRTC using Node.js, Express and Socket.io with Vanilla JS on the frontend with a flexible and intuitive GUI. The app uses WebRTC for peer to peer connection which facilitates Video sharing between the peers. The sockets help in connecting multiple peers and transferring messages between them.
- Room-wise conferences.
- Current Room User lists.
- Video Conferencing using WebRTC and Websockets for Multi-Peer network.
- Messaging feature in the App.
- Video and audio toggle.
- Nodejs
- Express Js
- React Js
- Firebase
- WebRTC API
- Socket IO
- Games
- Screen Sharing.
<CMD in the main folder>
> npm install
> npm start
Go to localhost:8443
The user will enter the Room name and the User name. Every user is given a unique user ID(UUID). A new WebRTC peer is defined. Then, the script will check if the user is the first one to enter the room, If so, it will create a new connection request to other peers. And wait for other peers to connect. It creates a description and sends it to the server using socket.io. The server then broadcasts the message to all the peers in the room. If, the user was not the first one to join the room, then the script will listen to all the messages broadcasted by the server. If there is a description , the WebRTC peer will create an answer and send it to the server to broadcast. If the answer is received by other peers then they send ICEs. And exchanges their video and audio streams. Once the connection between is established they can exchange chat messages too using socket.io.
if you like the app, drop a star on github :)