WebSocket in NodeJS | Socket.IO - Real Time Messaging
► Master NodeJS Playlist: • Master NodeJS
Source Code: drive.google.com/drive/folder...
In this video, we will explore the world of WebSocket and Socket.IO in Node.js. WebSocket is a protocol that enables two-way communication between client and server. It provides a fast and efficient way to exchange data between the client and the server in real-time.
Socket.IO is a library built on WebSocket and provides additional features like fallback options, multiple transport protocols, and rooms. It is popular for building real-time applications, such as chat applications, online gaming, and stock market tickers.
In this video, we will cover the following topics:
00:00 Introduction
00:20 What are WebSockets?
10:20 WebSocket Protocol Documentation
11:15 Socket.IO + Express
30:15 Testing Socket.IO Websockets
31:05 Homework
► Complete Full Stack Web Developer RoadMap 2023: • Complete Full Stack We...
► My Website: www.piyushgarg.dev
My Gears
► My Girlfriend: amzn.to/3WD6FRp
► Apple MacBook Laptop: amzn.to/3WBJgQn
► Anker USB Hub: amzn.to/3GhZSr0
► Blue Yeti Microphone: amzn.to/3YKZ9FT
► External 27” Monitor: amzn.to/3Vp3xaO
► Logitech MK295 Wireless Keyboard and Mouse: amzn.to/3DuL1bB
► Seagate Expansion 1TB External HDD: amzn.to/3QMm5Q8
► Tripod: amzn.to/3S4OwK4
► Ring Light: amzn.to/3YLf8DR
Video Titles ✨
WebSockets in NodeJS
Socket.io NodeJS
Chat App NodeJS
Tags
#nodejs #socketio #websocket #javascript #expressjs #mongodb #mernstack #developer #api #https #server #javascriptinhindi #webdevelopment #webapp #realtimeapp #serverside #nonblockingio #tech
Пікірлер: 139
I am still sorry for those who has not yet discovered his channel it is a milestone I dont have any words to explain how grateful I am that I find this, Alhumdullilah
@hanishtharwani4754
6 күн бұрын
love you
bhai i was struggling so much with websockets during my internship, my college taking lakhs of fees didn't touch this topic and you taught this so well, THANKYOU
Well after learning from here i don't think to go for other Primum Courses. JUST REQUIRED A MERN PRIMIUM PROJECT
at the end, it was so fun to chat, that i started chatting with myself
Great explanation dude. The best content on Web-sockets so far with basic implementation!.
mst padhate hai bhaiya , developments es se jada achha tarika se koi sayd hi pdha paye , awesome video bhaiya aaisa koi development pdhaya hi nhi yputub pr .... one of the beat mentor i got , thanks
Randomly saw your opensource contribution video and now here i am loving your all videos. Thanks buddy
Bhai esi explanation poore internet pe kahin ni hai yaar pareshan ho gya tha web socket ko samajhne ke liye shukar hai Allah ka usne tumhara channel dikhaya bro you r awesome😊
@varunupadhyay2488
7 ай бұрын
Have you made Piyush Garg's Node.js notes? I've been through the whole playlist, but my notebook is misplaced. Got an interview in two days, and I'm a bit stuck. Any chance you could share your notes?
One of the most detailed and easy to understand demonstration of web socket. Really helpful tutorial
I understood every single word you said. Thank you brother.
Earned a subs . Thank you for making it much easier to understand for anyone.
thankyou for such crisp and clear info
Great video Piyush as always 😍❤
The video is explained in a way that if I show it to my 5-year-old son, he will definitely build an app. Awesome.
@Ayush37262
5 ай бұрын
Even a new born baby can make app after watching this video 🤡
@user-us7sc5zc5h
4 ай бұрын
😂
@muhammad_haseeb_pk
Ай бұрын
@@Ayush37262 Nah that is too much but yeah I appreciate piyush sir his explanation is far beyond that
Hello Piyush. I am from Bangladesh and fortunately I understand Hindi. I really enjoy your tutorials. Thanks for sharing your knowledge.
Great bhaiya your videos always add something new to my knowledge. You are great bhaiya :)😊😊
This is the simpliest tutorial ever on socketIO even a one brain cell being can understand this like me ;)
Thank you so much brother❤❤❤❤❤❤❤❤❤❤❤The way you explained it is unforgettable!
Thanks a lot for the easy explanation
Congratulations 🎉 for 2k subscriber
Thank you bhai, it was really helpful :)
Khatarnak 🔥
Thank you. Very much easy explanation!
Hats off to you Brother ❤️🙇
Helped a lot....thanks..
Really great explanation :)
Great Explanation sir..
Subscribed on first watch 🔥 Can't believe you've explained it so easily.
really help ful 🤞 thank you 🙂
Next level Explanation . Thank You sir
Excellent video
Very useful thanks for sharing your valuable knowledge
Great video, plz upload next video.
Zabardast explanation, awesome ❤
great bhaiya .. Really a great explanation . like the way you are teaching..
One of the best video on web sockets ❤️
@piyushgargdev
Жыл бұрын
Thank you ❤️
Amazing sir you are the best youTube teacher
Extremely Awesome, searching for this sort of tutorial for a long time.
Best video to understand web socket. But if you give details about pre defined events and custom defined events like io.send() and io.emit() it will be very helpful for beginners.
Nice one
best video on web socket
very informative video
good content brother.
Subscribed your channel great content
good explanation bro👌
Bht Awllaaaa
Very insightful knowledge how to chating application working 🎉🎉
First back-end project that I understood completely...like I have implemented some by debugging using chat gpt ..but this was something else
Bhaiya plz app video dalte rehna, mujhe sirf apse hi smj ata he
@piyushgargdev
Жыл бұрын
Sure bro
Thank you sir ❤please upload it's next part
Thank you so much!
ye kitna easy peasy tha mast technology h socket ki ek number and kafi easy way se bhaiya ne implement krke dhikaya
Thank you so much☺
Thanku so much sir ❤
congo for 2k sir
@piyushgargdev
Жыл бұрын
Thank you Dipansh 🚀
amazing
very interesting.
Mind Blowing Explanation🔥
@kabir2190
6 ай бұрын
but i think ye pura nahi hai socket ka bhout kam part hai right?
@rampraveshthakur1879
6 ай бұрын
@@kabir2190 ha kam hai but ache se samjhaya hai
@rampraveshthakur1879
6 ай бұрын
@@kabir2190 ha kam hai but ache se samjhaya hai
@kabir2190
6 ай бұрын
now i upgraded this and added a new option of color
awesome
zbrdast
How is this course available for free!, best backend course I've ever seen
Honestly am not an indian i cant even hear what you are speaking but the illustration and code would do for now...
Thanks
best video on WebSocket, i am searching for a video like this for 2 days
nice
Please go ahead with advanced series on node js how to much memory in node js how to live monitor usage of memory please please make videos on it 🎉 God bless you
More videos about socket please
It would be great if you go through the TCP protocol, where it fails and also mention about the udp , and then web socket !!
@varunupadhyay2488
7 ай бұрын
Have you made Piyush Garg's Node.js notes? I've been through the whole playlist, but my notebook is misplaced. Got an interview in two days, and I'm a bit stuck. Any chance you could share your notes?
What is the tool that you are using for explaining with diagrams ?
Dear Pyush thanks a lot . I have implemented Chat app in NEXT.Js Project using state varibales of message. I am facing the following problems. Sometime one message is recieving multiple times. While sometimes message is comming very late. How can we synchronize the communication? Please make videos highlighting these issues and along with their solution. I will be very very thankful.
Can you please make a video on react basics
Well explain
@varunupadhyay2488
7 ай бұрын
Have you made Piyush Garg's Node.js notes? I've been through the whole playlist, but my notebook is misplaced. Got an interview in two days, and I'm a bit stuck. Any chance you could share your notes?
God level teaching🫠
subscribing
very help full > 20000000000
Bro your explanation is awesome. Can you keep English subtitles . Because people who don't Hindi it's difficult to them , I'm also one of person in it. Thank you
Very interesting, thank you for this amazing video. One question, I am trying to deploy this backend but I was able to see that not all sites are able to deploy sites with sockets. Do you know where can we deploy this?
@Atul_25
8 ай бұрын
Did you find something?🆘
sir what about the chatroom tutorial? i'm unable to find that video on your channel
Thanks for sharing your knowledge. Keep doing great work. I am not sure if you realize but you are helping so many people
Can you make video of building video chat sdk in node js typescript
which app do you use to connect iPad as drawing pad to ur PC ?
hi piyush....plz clarify one thing In video 10 where you introduced express, you said, we don't need to require 'http' and create server and say "server.listen()" , instead we will use "app.listen()" and it will internally use "HTTP" to handle all those things. But here you're saying we cannot just use "app.listen()", instead we have to use "HTTP" & "server.listen()"...... why is that???
bhaiya hum web sockets kyu use kar rhe hain web rtc bhi aisa hi ha na ?
Jaanab ,maja aagaya ❤😅
What is the server here does our local machine acts as server and how can i make mysql server instance to connect with node js
Hey, why don't use the nodemon?
brother isko live server pe kaise kar sakte hai
Can it directly be deployed on vercel?
*_Ye WEB 3 D-App kiya hote hai... ?_*
sir plz tell about next part of websocket application to continue this topic sir plz mention link where it is???
How many websocket connection we can have ? What does it depend on
Bhi ap kon si theme use kr raha hoo??
Is there any part 2 of socket io
can you please explain authentication in socket
👍👍👍👍
wrong at 21:37, that header value ensures the integrity of web socket conn that's been established
👍
Do you mix indian and english? cause sometimes i dont understand
Company mee freshers kee paas kyaa karate hee any idea in node, express ?
Do tell me what to change to run my application on plesk server const express = require('express'); const app = express(); const server = require('http').Server(app); const fs = require('fs'); server.listen(process.env.PORT || 8080); app.use(express.static('public')); app.set('view engine', 'ejs'); app.get('/', (req, res) => { res.render('frontpage'); })