Building a Chat App - Intro to WebSockets

Published: 19 September 2023
on channel: Dave Gray
48,280
1.6k

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

Part One of the Building a Chat App series provides an Intro to Websockets. We'll look at how websockets provide realtime communication by building a monorepo with a Node.js server and a frontend app.

💖 Support me on Patreon ➜   / davegray  

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: https://bit.ly/CompNextJSDev
- Advanced React: https://bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

📬 Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜   / discord  

☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

👇 Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  

🔗 Source Code: https://github.com/gitdagray/build-ch...

🔗 Playlist for this Building a Chat App Course:    • Building a Chat App  

Building a Chat App - Intro to Websockets

(00:00) Intro
(00:10) Welcome
(00:31) Lesson Goal
(00:38) What are WebSockets?
(01:24) Install Node.js & confirm
(02:34) Start the Monorepo
(02:53) Set up server & dependencies
(04:46) Building the WebSockets server
(06:44) Building the frontend app (client)
(13:59) Running the server & client
(15:44) Displaying messages in the server terminal
(17:54) Multiple Client connections

📚 Tutorial References:
🔗 Node.js Official Site: https://nodejs.org
🔗 MDN WebSockets: https://developer.mozilla.org/en-US/d...

⚙ Dependencies:
🔗 ws: https://www.npmjs.com/package/ws

Was this tutorial providing an Introduction to WebSockets helpful? If so, please share. Let me know your thoughts in the comments.

#chat #app #websockets


On this page of the site you can watch the video online Building a Chat App - Intro to WebSockets with a duration of hours minute second in good quality, which was uploaded by the user Dave Gray 19 September 2023, share the link with friends and acquaintances, this video has already been watched 48,280 times on youtube and it was liked by 1.6 thousand viewers. Enjoy your viewing!