What is WebSocket? Why is it used & how is it different from HTTP?

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • If you want to learn DSA + Web Development from us, then you can study from
    🔥New DSA + Development Batch (Sigma) : www.apnacolleg...
    ----------------------------------------------------
    Join the Apni Community🔥 : telegram.me/+k...

Комментарии • 399

  • @dhaval.doubledotts
    @dhaval.doubledotts 8 месяцев назад +59

    00:01 WebSocket allows peer-to-peer connection for real-time data transfer
    01:40 WebSockets allow for real-time bidirectional communication, supporting efficient data exchange.
    04:14 WebSocket allows for full-duplex communication with the server.
    05:59 WebSocket is a persistent, bi-directional full-duplex connection
    07:43 WebSocket is different from HTTP and allows for bidirectional communication.
    09:30 Using Node.js, we can leverage NPM packages to quickly implement a WebSocket server and client.
    12:08 WebSocket allows real-time data communication and two-way interaction between client and server.
    14:01 WebSocket allows for a persistent connection and exchange of data between client and server.

    • @shubhamkun079
      @shubhamkun079 8 месяцев назад +2

      thanks

    • @Bits2GB
      @Bits2GB 8 месяцев назад

      ruclips.net/video/4XVQ7lkEyrA/видео.htmlsi=8RR1kMrlcATzQLqS

    • @kuppuraj1416
      @kuppuraj1416 7 месяцев назад +1

      Keep repeating 😂😂😂😂

    • @AAKSHAS
      @AAKSHAS 2 месяца назад

      10:00 building server

  • @yourlinuxguy
    @yourlinuxguy 8 месяцев назад +46

    This is the kind of video, I always expect but didn't get, Now you're delivering it. Thanks, Nice presentation as usual.

  • @pratyushgoel3241
    @pratyushgoel3241 8 месяцев назад +13

    Learnt so much from this single video!
    Amazing!!!
    Generally developers just use setInterval inside useEffect as they are unaware of websockets.
    Please add it in the content bucket to make videos on core technological aspects of web development.
    Such videos help understand the right technologies to use for a given scenario.

  • @ismailshaik6829
    @ismailshaik6829 7 месяцев назад +2

    Thats a good example. But remember, it blocks a connection on server. if traffic get increases, for every request a connection assigned from connection pool which could have limited connections.
    Once all connections are engaged then new request has to wait.

  • @itxxsaiff
    @itxxsaiff 7 месяцев назад +5

    Today after 3 years in my journey of development i have watched your video for the first time and it's really amazing and helpful
    thanks for this concept..

  • @AnilVerma-jc2vq
    @AnilVerma-jc2vq 3 месяца назад +2

    Kuchh dino se mujhe 5+ minutes ke videos dekhne ka mann nahin karta hai, qki log bahot slow video banate hai,
    but apka explanation and speed bahot achha hai.
    thoda sa v dhyan idhar udhar nahin gya.🙏
    your knowledge and teaching skill is next level.

  • @ZaimxX0
    @ZaimxX0 4 месяца назад +3

    This is the best way, clear and to the point. Kudos to your deliveries.

  • @RakeshBitling
    @RakeshBitling 3 месяца назад

    Excellent Shraddha.. As a experienced guy in nodejs full stack domain.. even i was also finding difficult to learn web-socket. this video made my day.

  • @ranjanrockz1
    @ranjanrockz1 4 месяца назад +2

    This 16 minutes of video is so much of informative :) Keep that coming !

  • @varungaur6946
    @varungaur6946 8 месяцев назад +10

    Most loving coding platform 😍 😅

    • @Bits2GB
      @Bits2GB 8 месяцев назад

      ruclips.net/video/4XVQ7lkEyrA/видео.htmlsi=8RR1kMrlcATzQLqS

  • @muneebtahir
    @muneebtahir 25 дней назад

    Although Apna College is one of the channels jinke bagair we could not have passed many subjects at college but this video..
    I opened it with curiosity that how much is Shradha di gonna tell about webSockets in just 15 minutes and wow!!! 😨😳
    She explained history, usage, base and also created a simple socket connection WTH!!
    More support for @apnaCollege !

  • @vk8692
    @vk8692 8 месяцев назад +63

    Shraddha didi is best❤

  • @nri_raj
    @nri_raj 8 месяцев назад +3

    This is your first tech video I watched, you explained so well, love from London, keep going, god bless you

  • @anvayparanjape7967
    @anvayparanjape7967 Месяц назад

    Such a simple and clear explanation of web sockets !

  • @artfull-logic
    @artfull-logic 8 месяцев назад +5

    Hi mam , i wanna say please bring a playlist on React js...i want to learn it from you❤

  • @Prince_Kaneriya
    @Prince_Kaneriya 8 месяцев назад +1

    Aws cloud playlist prepare please or give right knowledge to learning about AWS playlist. I mean which is th best way to learn basic to advanced this course!!

  • @huntercrick4292
    @huntercrick4292 8 месяцев назад +1

    You are best teacher 👩‍🏫‍

  • @rusty-coder
    @rusty-coder 6 месяцев назад

    What an explanation! So clear, so understandable. Thanks a lot for this.

  • @Shaidul85
    @Shaidul85 7 месяцев назад

    wow today I learn webshcket within few minutes. thanks

  • @dawarlatif3832
    @dawarlatif3832 4 месяца назад

    Exceptional teaching skills, mam

  • @shrestabiswas3631
    @shrestabiswas3631 4 месяца назад

    I think it's a great content for learning web socket basics. Keep it up.

  • @NANDANKAUSHIK
    @NANDANKAUSHIK 6 месяцев назад

    AFAIK, http is based on tcp which goes through different technical states in connection lifecycle . So http being stateless is probably pointing to no aplllication level states .

  • @santoshbansode697
    @santoshbansode697 7 месяцев назад

    Nice to see you again ``````and first thanks to you for helping me for finding a right course`````now i am something because of you ```````again thanks from bottom of my heart ```````````with lot of ❤️ ❤️❤️❤️❤️❤️❤️❤️❤️❤️

  • @aparnaiyer1199
    @aparnaiyer1199 6 месяцев назад +1

    Very clearly explained!

  • @pujondas5478
    @pujondas5478 4 месяца назад

    Awesome!! Didi!!
    It's amazing learned ws with in 15 min. It's really awesome.

  • @rahuljamba5846
    @rahuljamba5846 2 месяца назад

    Thanks a lot Shradha for sharing your knowledge !! Keep it up

  • @jasminekaur2080
    @jasminekaur2080 8 месяцев назад +1

    Thanks for making such informative videos. Really appreciate your efforts. Please keep making informative videos on different topics in tech.

  • @awaiskhan4638
    @awaiskhan4638 7 месяцев назад

    Very well explained learned alot thanks and lots of love from Pakistan ❤

  • @crazyreel_official
    @crazyreel_official 8 месяцев назад +1

    Mam, 🙏 Ek asi video chaiye jis me hum 2024 ke liye best laptop buy kare for cording purpose with minimum cost .
    Please mam.......

  • @ramlaaal
    @ramlaaal 8 месяцев назад +1

    Explaination is awesome 😎.
    But VS code setup could have been more beautiful with
    "Aesthetic VS code theme"

    • @Bits2GB
      @Bits2GB 8 месяцев назад

      ruclips.net/video/4XVQ7lkEyrA/видео.htmlsi=8RR1kMrlcATzQLqS

  • @HSKhan-lc5pk
    @HSKhan-lc5pk 8 месяцев назад +1

    One short React js tutorial by shraddha mam

  • @ayushgoyal423
    @ayushgoyal423 Месяц назад

    8:46 HTTP is not unidirection. I think you confused half-duplex with unidirectional. HTTP allows sending data in BOTH the directions, just that server cannot initiate the data transfer on it's own. A request has to made by the client.
    Something like an SSE can be called a unidirectional connection.
    Also, would have been great if you could've also demonstrated the first HTTP request sent for handshake by the client. I am confused why do we send our very first message with the ws protocol identifier. Is the connection already established by Hoppscotch under the hood?

  • @cricfunzone999
    @cricfunzone999 4 месяца назад

    need more contents like this. helped a lot. thanks ❤❤

  • @MuhammadBilal-hq3xn
    @MuhammadBilal-hq3xn 4 дня назад

    Mam you are best.

  • @AbhishekSingh-xg3zj
    @AbhishekSingh-xg3zj 7 месяцев назад

    Superb explanation Shraddha di 👌✨

  • @Ayush_Raj_7777.....n
    @Ayush_Raj_7777.....n 8 месяцев назад

    Define a class to input city names and their capitals in two Single Dimensional Arrays. The input should continue till the user wants. Then sort and print the names of these cities in alphabetical order using the Bubble Sort technique. Print the cities and their capitals in the given format: City Capital(in java)

  • @Niraj_Singh7
    @Niraj_Singh7 8 месяцев назад +1

    Thanks for makings these type of videos

  • @minhajkhan504
    @minhajkhan504 7 месяцев назад

    Thanks for the video. I wish to see such in-depth video's on Cloud Computing someday :)

  • @haribolanil
    @haribolanil 8 месяцев назад

    Awesome and informative, I am from Network background, but I got this concept clear. Thanks

  • @poonampatil3995
    @poonampatil3995 2 месяца назад

    Helpful! please create videos on webRTC also

  • @RaviShankarTTL
    @RaviShankarTTL 4 месяца назад

    One of the best tech video.🎉

  • @muhammadharoon4680
    @muhammadharoon4680 8 месяцев назад

    Didi you are great, I love ❤ the way you are explaning very easy, clear and to the point, thank you.

  • @rajkumararora7366
    @rajkumararora7366 7 месяцев назад

    Great tutorial. Thnx for sharing!
    A good idea is to create a playlist and add more likely content!

  • @Thepoinofficial
    @Thepoinofficial 6 месяцев назад

    I don't know anything still I am watching till the end because I am very interested which is beyond my think.

  • @unknown__shayar
    @unknown__shayar 8 месяцев назад +1

    It is best college apna college

  • @franke1917
    @franke1917 7 месяцев назад

    Very nicely explained! Thank you very much!

  • @visheshgupta4990
    @visheshgupta4990 8 месяцев назад

    Thank you so much it is really very helpful and very well explained I understand this topic very easily , Thanks alott Shraddha Didi ❤️

  • @entity5678
    @entity5678 8 месяцев назад

    Lot of info in one video and very well explained..

  • @rajeshmahadevan9683
    @rajeshmahadevan9683 Месяц назад

    Crystal clear explanation

  • @ManjotSingh-te7gt
    @ManjotSingh-te7gt 8 месяцев назад +1

    Mam python related series bhi upload kijiye

  • @dcsalim4384
    @dcsalim4384 8 месяцев назад +1

    Thank you Shraddha mam ❤️🙏

  • @Om-pant02
    @Om-pant02 8 месяцев назад +1

    Please make a video on RTC also ...

  • @tanveerali9496
    @tanveerali9496 8 месяцев назад +1

    I am earning due to you. Thanku so much didi❤

    • @amanpratapsingh5820
      @amanpratapsingh5820 8 месяцев назад +1

      Bhai kaise earn kr rh

    • @tanveerali9496
      @tanveerali9496 8 месяцев назад +1

      @@amanpratapsingh5820
      Bahi face book ma ana Sara proof Dunga
      Tanveer Ali Raees 🙏

  • @KamranHossainTopu
    @KamranHossainTopu 8 месяцев назад

    Best coding channel ever🎉🎉🎉

  • @anhilator82
    @anhilator82 4 месяца назад

    really understood websockets. thank you.

  • @Toqeershah2685
    @Toqeershah2685 6 месяцев назад

    Highly recommended, very useful.

  • @mastergaming4503
    @mastergaming4503 8 месяцев назад +1

    Hii mam please make video for cyber security and ethical hacking road map

  • @ambikakutnavoin9392
    @ambikakutnavoin9392 8 месяцев назад

    Didi u r the best in this whole youtube platform ❤

  • @Tips_For_You_1-m
    @Tips_For_You_1-m 8 месяцев назад

    Didi please let us know your point of view whether computer science or computer engineering is better

  • @edupulseacademy
    @edupulseacademy 8 месяцев назад +1

    Amazing Very Helpful me
    🤩☺

  • @ankurha7776
    @ankurha7776 6 месяцев назад +1

    This was just perfect 👌
    To the point and simplified. That too with a practical demo.
    Loved it. Thanks for this lovely learning ❤

  • @JatinGupta-ze6nc
    @JatinGupta-ze6nc 6 месяцев назад

    Thanks web socket k lia bhot confusion tha

  • @kedukhanvilkar5390
    @kedukhanvilkar5390 4 месяца назад

    Spot on...!!! Thanks a lot for this video

  • @ImranKhan-br5dv
    @ImranKhan-br5dv 8 месяцев назад

    best time video need this to understand webSocket. thanks mam

  • @artyCrafty4564
    @artyCrafty4564 8 месяцев назад +4

    Great video ❤
    Mam when will delta 4.0 come ? I am waiting for it eagerly

    • @ansuprasad6445
      @ansuprasad6445 8 месяцев назад +1

      Hey I am also waiting for the same

    • @अगस्त्य-स3फ
      @अगस्त्य-स3फ 8 месяцев назад +1

      Same

    • @artyCrafty4564
      @artyCrafty4564 8 месяцев назад

      @@ansuprasad6445 ya broo let's make this comment visible to didi. i have been commenting this since last 1 month

    • @artyCrafty4564
      @artyCrafty4564 8 месяцев назад

      @@अगस्त्य-स3फ ya broo let's make this comment visible to didi. i have been commenting this since last 1 month

    • @ansuprasad6445
      @ansuprasad6445 8 месяцев назад +1

      @@artyCrafty4564 sure

  • @Krishnasap-e7l
    @Krishnasap-e7l 7 месяцев назад

    thanks for the content, was searching for this from long time

  • @rokckerzzzz6080
    @rokckerzzzz6080 8 месяцев назад

    Thanks Didi for WS overview.

  • @mahaar
    @mahaar Месяц назад

    Just WOW!!!

  • @amysoftec8205
    @amysoftec8205 4 месяца назад

    You are so brilliant...💯

  • @shortsScroll
    @shortsScroll 8 месяцев назад +2

    DIDI, can you please shear with us that what is your primary resources to get this crazy types of information... 🙏🙏🙏🙏🙏🙏🙏

    • @sourcex-yl5kk
      @sourcex-yl5kk 8 месяцев назад

      yea, where can we learn these diverse topics while learning web dev

  • @swapnilnikam6087
    @swapnilnikam6087 8 месяцев назад +1

    Hii dii
    We are waiting delta 4.0 please please launch.
    Dii we want delta 4.0 batch for learn Web development from you please launch.

  • @rahul-java-dev
    @rahul-java-dev 8 месяцев назад

    Wow amazing... Thank you so much. Are we going to get the next part of it where client implementation will be there?? Plz we need it.

  • @huxaifaxheikh7919
    @huxaifaxheikh7919 8 месяцев назад

    Respect From Pakistan Mam...

  • @Sofdcast
    @Sofdcast 8 месяцев назад

    Thank you so much for providing clarity

  • @gauravgupta5148
    @gauravgupta5148 8 месяцев назад

    Helpful.....need more related things... thanks apna college

  • @Kaushik-RoyChowdhury
    @Kaushik-RoyChowdhury 4 месяца назад

    Well explained!

  • @NITISHKUMAR-kf9jy
    @NITISHKUMAR-kf9jy 8 месяцев назад

    Thanks Mam ❤, you explain in amazing way

  • @investccorrectly
    @investccorrectly 8 месяцев назад

    Exactly 3 days before I have applied it

  • @navz04
    @navz04 13 дней назад

    Can you please do a video on software design patterns?

  • @JavaScriptcsshtml
    @JavaScriptcsshtml Месяц назад

    Good Explanation

  • @MuzammilRazaTech
    @MuzammilRazaTech 8 месяцев назад +1

    Didi Really Great and Best explanation I'm already working on web sockets, your explanation is very reasonable, love it from Pakistan ❤

  • @mayappapujari9259
    @mayappapujari9259 8 месяцев назад

    helpful for backend development thanks didi 🙏🙏

  • @humanity7880
    @humanity7880 8 месяцев назад

    But in ChatGPT client also message to server and if ChatGPT uses SSE then how client is able to send messages to the server(if it unidirectional)
    I will check it out, but just it came in my mind so I also asked here

  • @NikhilSingh-cf6dk
    @NikhilSingh-cf6dk 8 месяцев назад +2

    Mam please bring delta 4.0

  • @Faisal1504
    @Faisal1504 8 месяцев назад

    Very well explained thank you.

  • @truptiramteke6050
    @truptiramteke6050 8 месяцев назад

    Shradha mam,Salesforce as a career kaisa rahega?Is it a good choice?❓❓❓❓❓

  • @annaanand87
    @annaanand87 4 месяца назад

    Perfect. Thank you so much!!!

  • @doctorDevZ
    @doctorDevZ 6 месяцев назад

    God Bless you sharda apa keep it up

  • @masoomsanadi
    @masoomsanadi Месяц назад

    can u make such explanatory video on elixir phoenix language.
    expecting whatsApp like server, chatting one to one with authentication identifying people by mobile number!

  • @t_series2444
    @t_series2444 8 месяцев назад

    Best coding channel

  • @MdJaved-f4m
    @MdJaved-f4m 8 месяцев назад

    Please make a video on How to do research work and create a research paper in IT field.

  • @ajithmkerala1234
    @ajithmkerala1234 7 месяцев назад

    Very good👍

  • @1soumensarkar
    @1soumensarkar 22 дня назад

    Could you make a video on NATS & jetStream

  • @hassanriaz4274
    @hassanriaz4274 6 месяцев назад

    Great Explanation😀😀

  • @aifa_majeed
    @aifa_majeed Месяц назад

    Amazing !

  • @dinit_official
    @dinit_official 8 месяцев назад

    This is what I was looking for.

  • @broflashers7985
    @broflashers7985 8 месяцев назад

    I am huge fan of you 💘

  • @apraksh
    @apraksh 7 месяцев назад

    Very nice video. Thank you for sharing.

  • @maheshsinha7668
    @maheshsinha7668 4 месяца назад

    Awesome 👍

  • @aounabbas4641
    @aounabbas4641 7 месяцев назад

    Really Great Mam !