MENU

Fun & Interesting

Trying Out WebSockets: Very Simple Real-Time Messaging with Nodejs

TheTechMaze 62 2 months ago
Video Not Working? Fix It Now

A simple Chat App using nodejs and websocket. 🔗 Links: Websocket docs: https://github.com/websockets/ws TailwindCss Play cdn: https://tailwindcss.com/docs/installation/play-cdn Checkout the complete code for this project here: https://github.com/thetechmaze/websocket-simple-realtime-messaging 🔧 Technologies Used: - Nodejs - Websocket - TailwindCss 🔔 Don't forget to subscribe! If you found this tutorial helpful, please like the video, comment, and subscribe for more tech tutorials! ⏰ Timestamps: 00:00 - Intro 00:49 - Demo 02:46 - npm init 04:00 - Creating a simple server 09:07 - Creating UserId 12:56 - Handling the message sent by the user 18:34 - Creating Broadcast message function 23:30 - Creating private message function 25:52 - Handling Messages on the Client 30:58 - Creating private message function on client 34:10 - Creating Broadcast message function on client 35:34 - Adding the UI 39:31 - npm start

Comment