WebSocket in NodeJS | Socket.IO - Real Time Messaging

Sdílet
Vložit
  • čas přidán 17. 06. 2024
  • ► 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

Komentáře • 127

  • @muhammad_haseeb_pk
    @muhammad_haseeb_pk Před 3 dny +3

    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

  • @kritikajoshi8291
    @kritikajoshi8291 Před 2 dny

    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

  • @guptaankit2791
    @guptaankit2791 Před měsícem

    Great explanation dude. The best content on Web-sockets so far with basic implementation!.

  • @shubhamgaur3629
    @shubhamgaur3629 Před rokem +45

    Well after learning from here i don't think to go for other Primum Courses. JUST REQUIRED A MERN PRIMIUM PROJECT

  • @ayushrawat3108
    @ayushrawat3108 Před 7 měsíci +9

    One of the most detailed and easy to understand demonstration of web socket. Really helpful tutorial

  • @parthtiwari8152
    @parthtiwari8152 Před 8 měsíci +2

    Randomly saw your opensource contribution video and now here i am loving your all videos.
    Thanks buddy

  • @ragnar357
    @ragnar357 Před 5 měsíci

    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

  • @ck0024
    @ck0024 Před 3 měsíci

    I understood every single word you said. Thank you brother.

  • @SulavKarki-mj4ph
    @SulavKarki-mj4ph Před 3 měsíci

    Earned a subs . Thank you for making it much easier to understand for anyone.

  • @barked2786
    @barked2786 Před 3 měsíci +2

    at the end, it was so fun to chat, that i started chatting with myself

  • @sakshamsharma648
    @sakshamsharma648 Před 9 měsíci

    thankyou for such crisp and clear info

  • @shadowyt1727
    @shadowyt1727 Před 6 měsíci

    This is the simpliest tutorial ever on socketIO even a one brain cell being can understand this like me ;)

  • @abeercodes
    @abeercodes Před 6 měsíci

    Hello Piyush. I am from Bangladesh and fortunately I understand Hindi. I really enjoy your tutorials. Thanks for sharing your knowledge.

  • @tarak_80
    @tarak_80 Před měsícem

    Thank you so much brother❤❤❤❤❤❤❤❤❤❤❤The way you explained it is unforgettable!

  • @mma-dost
    @mma-dost Před rokem +2

    Great bhaiya your videos always add something new to my knowledge. You are great bhaiya :)😊😊

  • @damacoolpakistan5796
    @damacoolpakistan5796 Před 8 měsíci

    Extremely Awesome, searching for this sort of tutorial for a long time.

  • @technicalabhi7683
    @technicalabhi7683 Před rokem +1

    Congratulations 🎉 for 2k subscriber

  • @brosgaming108
    @brosgaming108 Před rokem +3

    Hats off to you Brother ❤️🙇

  • @tarushchandra8993
    @tarushchandra8993 Před rokem +1

    Great video Piyush as always 😍❤

  • @akashrajawat3004
    @akashrajawat3004 Před 5 měsíci +3

    Subscribed on first watch 🔥
    Can't believe you've explained it so easily.

  • @Tabish_Abbasi
    @Tabish_Abbasi Před 7 měsíci +3

    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
      @varunupadhyay2488 Před 6 měsíci

      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?

  • @shubhamdas6519
    @shubhamdas6519 Před 10 měsíci

    Thanks a lot for the easy explanation

  • @mayurhalli148
    @mayurhalli148 Před rokem +19

    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
      @Ayush37262 Před 4 měsíci +3

      Even a new born baby can make app after watching this video 🤡

    • @user-us7sc5zc5h
      @user-us7sc5zc5h Před 3 měsíci

      😂

    • @muhammad_haseeb_pk
      @muhammad_haseeb_pk Před 3 dny

      @@Ayush37262 Nah that is too much but yeah I appreciate piyush sir his explanation is far beyond that

  • @vaibhavbhardwaj8895
    @vaibhavbhardwaj8895 Před 8 měsíci

    Thank you bhai, it was really helpful :)

  • @aryanraj3413
    @aryanraj3413 Před 2 měsíci

    great bhaiya .. Really a great explanation . like the way you are teaching..

  • @Stories_hubs
    @Stories_hubs Před 9 měsíci

    Amazing sir you are the best youTube teacher

  • @codingisthinking7568
    @codingisthinking7568 Před 2 měsíci

    Very useful thanks for sharing your valuable knowledge

  • @hassaannadeem567
    @hassaannadeem567 Před 6 měsíci +1

    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.

  • @redonthebeatboi
    @redonthebeatboi Před rokem

    One of the best video on web sockets ❤️

  • @codesetter2497
    @codesetter2497 Před 5 měsíci

    ye kitna easy peasy tha mast technology h socket ki ek number and kafi easy way se bhaiya ne implement krke dhikaya

  • @explore_coding
    @explore_coding Před rokem

    Great Explanation sir..

  • @ThaCoders
    @ThaCoders Před 8 měsíci

    Very insightful knowledge how to chating application working 🎉🎉

  • @snehasish-bhuin
    @snehasish-bhuin Před rokem +3

    Great video, plz upload next video.

  • @user-jf3lq9ng8s
    @user-jf3lq9ng8s Před 9 měsíci

    really help ful 🤞
    thank you 🙂

  • @CodeDynamo
    @CodeDynamo Před 11 dny

    Zabardast explanation, awesome ❤

  • @rifatmahmud5266
    @rifatmahmud5266 Před 5 měsíci

    best video on WebSocket, i am searching for a video like this for 2 days

  • @mayankbadika3101
    @mayankbadika3101 Před 4 měsíci

    Really great explanation :)

  • @triptivyas2521
    @triptivyas2521 Před 11 měsíci +1

    Helped a lot....thanks..

  • @learner5839
    @learner5839 Před 9 měsíci

    Thank you sir ❤please upload it's next part

  • @apurvapat3524
    @apurvapat3524 Před 4 měsíci

    best video on web socket

  • @user-sf2jo9dq9l
    @user-sf2jo9dq9l Před 10 měsíci

    How is this course available for free!, best backend course I've ever seen

  • @vibhavkumar2338
    @vibhavkumar2338 Před 5 měsíci

    Thank you so much!

  • @satyasaineelapala570
    @satyasaineelapala570 Před 4 měsíci

    Excellent video

  • @ibntofajjal
    @ibntofajjal Před rokem +1

    Khatarnak 🔥

  • @rampraveshthakur1879
    @rampraveshthakur1879 Před 5 měsíci +1

    Mind Blowing Explanation🔥

    • @kabir2190
      @kabir2190 Před 5 měsíci

      but i think ye pura nahi hai socket ka bhout kam part hai right?

    • @rampraveshthakur1879
      @rampraveshthakur1879 Před 5 měsíci

      @@kabir2190 ha kam hai but ache se samjhaya hai

    • @rampraveshthakur1879
      @rampraveshthakur1879 Před 5 měsíci

      @@kabir2190 ha kam hai but ache se samjhaya hai

    • @kabir2190
      @kabir2190 Před 5 měsíci

      now i upgraded this and added a new option of color

  • @dhruvkumar-br2lp
    @dhruvkumar-br2lp Před 4 měsíci

    Subscribed your channel great content

  • @sapnanegi3447
    @sapnanegi3447 Před 6 měsíci

    Thank you so much☺

  • @raziuddin2081
    @raziuddin2081 Před 6 měsíci

    good explanation bro👌

  • @DeepakPal-et8fz
    @DeepakPal-et8fz Před rokem +4

    Bhaiya plz app video dalte rehna, mujhe sirf apse hi smj ata he

  • @BANANAS2011
    @BANANAS2011 Před 2 měsíci

    Thanks for sharing your knowledge. Keep doing great work. I am not sure if you realize but you are helping so many people

  • @pradeepgaur263
    @pradeepgaur263 Před 19 dny

    good content brother.

  • @umeshbisht1054
    @umeshbisht1054 Před 5 měsíci

    Thanku so much sir ❤

  • @saibhaskar6939
    @saibhaskar6939 Před 15 dny

    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

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr Před rokem +2

    Nice one

  • @dipanshmalhotra564
    @dipanshmalhotra564 Před rokem

    congo for 2k sir

  • @Dev-Phantom
    @Dev-Phantom Před 10 měsíci

    very interesting.

  • @weforyouweb1165
    @weforyouweb1165 Před rokem +1

    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

  • @rishiraj2548
    @rishiraj2548 Před 18 dny

    Thanks

  • @nomanfareed513
    @nomanfareed513 Před měsícem

    Bht Awllaaaa

  • @himanshu2156
    @himanshu2156 Před rokem

    More videos about socket please

  • @mrcode6123
    @mrcode6123 Před měsícem

    amazing

  • @HimanshuSingh-ek3mu
    @HimanshuSingh-ek3mu Před 10 měsíci

    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
      @varunupadhyay2488 Před 6 měsíci

      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?

  • @hariii9912
    @hariii9912 Před 3 měsíci

    God level teaching🫠

  • @biswajitghosh3010
    @biswajitghosh3010 Před rokem +1

    Can you please make a video on react basics

  • @contentshark5122
    @contentshark5122 Před 5 měsíci

    What is the tool that you are using for explaining with diagrams ?

  • @patshalaaa
    @patshalaaa Před 10 měsíci

    awesome

  • @user-nz8de4hc6z
    @user-nz8de4hc6z Před 3 měsíci

    zbrdast

  • @codewithkashanadnan
    @codewithkashanadnan Před 5 měsíci

    very help full > 20000000000

  • @raulangeljimenezhernandez3342
    @raulangeljimenezhernandez3342 Před 9 měsíci +1

    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
      @Atul_25 Před 7 měsíci

      Did you find something?🆘

  • @tehniatmirza1439
    @tehniatmirza1439 Před 9 měsíci

    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.

  • @allendodul7898
    @allendodul7898 Před 7 měsíci

    Well explain

    • @varunupadhyay2488
      @varunupadhyay2488 Před 6 měsíci

      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?

  • @AjabKatha
    @AjabKatha Před 8 měsíci

    Can you make video of building video chat sdk in node js typescript

  • @chauhanmanish4818
    @chauhanmanish4818 Před 16 dny

    nice

  • @Vishal_jz
    @Vishal_jz Před rokem

    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???

  • @deepakbisht5149
    @deepakbisht5149 Před rokem +1

    👍

  • @tarunjawla9463
    @tarunjawla9463 Před měsícem

    which app do you use to connect iPad as drawing pad to ur PC ?

  • @CaligCalin
    @CaligCalin Před 2 měsíci +1

    Honestly am not an indian i cant even hear what you are speaking but the illustration and code would do for now...

  • @Intellectualmind4
    @Intellectualmind4 Před rokem

    👍👍👍👍

  • @user-re4uw4ui2y
    @user-re4uw4ui2y Před 6 měsíci

    sir what about the chatroom tutorial? i'm unable to find that video on your channel

  • @Goku-xm1gq
    @Goku-xm1gq Před 6 měsíci

    wrong at 21:37, that header value ensures the integrity of web socket conn that's been established

  • @KarnaPardheevSai
    @KarnaPardheevSai Před 3 měsíci

    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

  • @codewithkashanadnan
    @codewithkashanadnan Před 5 měsíci

    I was Stick in the video and i just do every thing

  • @shivanshbhatia8627
    @shivanshbhatia8627 Před 5 měsíci

    sir plz tell about next part of websocket application to continue this topic
    sir plz mention link where it is???

  • @mma-dost
    @mma-dost Před rokem

    bhaiya hum web sockets kyu use kar rhe hain web rtc bhi aisa hi ha na ?

  • @patshalaaa
    @patshalaaa Před 10 měsíci

    subscribing

  • @abdullahmehmood4945
    @abdullahmehmood4945 Před 6 měsíci

    Bhi ap kon si theme use kr raha hoo??

  • @iOSSchool
    @iOSSchool Před 4 měsíci

    You forgot to add the tool you are using to write in the My Gears

  • @developerakhter______0076
    @developerakhter______0076 Před 11 měsíci

    *_Ye WEB 3 D-App kiya hote hai... ?_*

  • @TechnicalYarana
    @TechnicalYarana Před 9 měsíci

    brother isko live server pe kaise kar sakte hai

  • @Aayus.Karki10
    @Aayus.Karki10 Před 3 měsíci

    Is there any part 2 of socket io

  • @mohitsharma7910
    @mohitsharma7910 Před 4 měsíci

    can you please explain authentication in socket

  • @anuj7286
    @anuj7286 Před rokem

    Hey, why don't use the nodemon?

  • @kabir2190
    @kabir2190 Před 5 měsíci +1

    but i think ye pura nahi hai socket ka bhout kam part hai right?

  • @PATILTANMAYVIJAY
    @PATILTANMAYVIJAY Před 3 měsíci

    Can it directly be deployed on vercel?

  • @vivekkapoor2537
    @vivekkapoor2537 Před 3 měsíci

    Server par Socket IO setup karna be batao. Like what will be the URL of Socket and in which port it will hit etc

  • @The_Builder_Bobs
    @The_Builder_Bobs Před měsícem

    can you make a video on webhook

  • @priyankatiwari1205
    @priyankatiwari1205 Před 4 měsíci

    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');
    })

  • @pritimohan2298
    @pritimohan2298 Před 12 dny

    Email verification via OTP iske upar ek video banaa dijiye please

  • @shivkumar23
    @shivkumar23 Před rokem +1

    Bhaiya Graphql par complete course banau please 🥺

  • @Dragonball0111
    @Dragonball0111 Před 3 měsíci

    server is not starting . nothing happens after node index.js pls help