Zoom Cling using NodeJS, WebRTC and Websockets
- Period : 2024-04-17 ~ 2024-04-20
- Member : Jaeseong Park
-
Created folder and setup
npm init -y
-
Erase "script" and "main" in the package.json file.
-
Change License to "MIT"
-
Added README.md
-
Install utilities
npm i nodemon -D
npm i @babel/core @babel/cli @babel/node -D
npm i @babel/preset-env -D
npm i express
npm i pug
-
Created files "babel.config.json", "nodemon.json", "gitignore.io" and do setting.
-
Installed ws library. ("https://www.npmjs.com/package/ws")
npm i ws
-
Implemented basic functions for messaging.
-
Checked some possible improvements.
-
npm run dev
-
Start from SocketIO (https://socket.io/)
npm i socket.io
-
Installed SocketIO in the browser using an url (http://localhost:3000/socket.io/socket.io.js)
-
Learned about Room
- Room Notification
-
Admin Panel (https://socket.io/docs/v4/admin-ui/)
npm i @socket.io/admin-ui
-
WebRTC (Web Real Time Communication) (https://webrtc.org/)
-
Installed Local Tunnel
npm i -g localtunnel
lt --port 3000
-> create url -
STUN
If my phone and PC are not in the same Wifi, there would be and error. To resolve this error, STUN Server is needed.
-
Data Channel