Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 264

  • @mikealejandro3938
    @mikealejandro3938 2 роки тому +79

    Got a job as a dev some months ago, but learning process never stops, thanks for this brother !

    • @navedoesthings
      @navedoesthings 2 роки тому +2

      been at it for quite some time...this is a constant in our field, a constant that keeps me focused and excited!

    • @mohamedali9249
      @mohamedali9249 Рік тому +3

      It will never end

    • @VinayTandale
      @VinayTandale Рік тому

      same

    • @krishnaprasanna3032
      @krishnaprasanna3032 3 місяці тому

      Hello Mike , I am fresher candidate aspiring to become Developer. I have learned MERN Stack, SQL , JAVA etc... Could you please tell me which technologies and tools I have to learn to crack a Developer role .

    • @Arcane_Dragon878
      @Arcane_Dragon878 2 місяці тому

      ​@@krishnaprasanna3032 try to get good at a few rather than be mediocre at many
      Try and improve a lot in the things you know right now and as time goes on add things to it

  • @miladbannourah7798
    @miladbannourah7798 Рік тому +8

    literally the best tutorial on youtube, thanks for making it short and not complecating anything, great job bro

  • @mdabdurrahman7626
    @mdabdurrahman7626 2 роки тому +22

    Hello sir, am from Bangladesh. As a web development learner, this is my first visit to your channel. And this is first tutorial I have seen on your channel. I just fall in love with your teaching ability and your tutorial. I'm So impressed. All tutorials are so standard and your teaching ability is so so so good...Take love from Bangladesh. Your pronunciation is very clear which is very convenient for non-English people like us.

    • @AbdurRahman.435
      @AbdurRahman.435 18 днів тому

      hi, I am also from Bangladesh....❤❤❤❤❤

  • @ShadyRonin
    @ShadyRonin 2 роки тому +11

    Wow man this was very easy to follow, thank you so much! I've seen other tuts and it was sooo overwhelming. You kept it focused on the core fundamentals and basics, and that's exactly what I needed!

  • @KiprutoR
    @KiprutoR Рік тому +2

    So easy and straight forward ...other tutorials just throw you off. I've understood socket. Will now try and work on a simple project to test what I've learnt. Thank you, you've earned my sub

  • @freedebris
    @freedebris Рік тому +1

    You are an incredible teacher. Hands down best tutorial on this subject that I have found yet! Thank you.

  • @supersaiyan2
    @supersaiyan2 9 місяців тому

    This is the best socket and react tutorial I've ever seen. I like how you explained every basic thing (like the hooks and server) because as a beginner I had no idea what they did.

  • @easycs4253
    @easycs4253 18 днів тому

    You are the best teacher on the platform. Keep up the good work !

  • @theartisticjs
    @theartisticjs 2 роки тому +6

    Thank you so much. Just what I needed. Not too overwhelming, very informative and helpful. Great job

  • @medhabibbenyoussef9391
    @medhabibbenyoussef9391 8 місяців тому

    The only useful socket tutorial in youtube, big thanks bro wish you all the best !

  • @natnael-oqp5082
    @natnael-oqp5082 2 роки тому +37

    bro please please make full-stack video using mern stack + AWS S3

  • @minhthien8651
    @minhthien8651 2 роки тому +3

    Cool ! I learned a lot of things from this channel. Thank you Pedro

  • @dinghanlim7735
    @dinghanlim7735 2 роки тому +9

    Thank you for this Pedro! recently subscribed and watched so much of your videos! Was hoping for some content that goes through real time servers, i.e. a simple online game with multiplayer online features; and how we could implement it online instead of just on localhost! once again thank you for the wonderful content :)

  • @irahazda
    @irahazda Рік тому +1

    At 21:53, are you sure using 'socket' as dependency to useEffect is the right thing? I am getting warning that having socket as dependency doesn't actually do a thing. The socket variable actually sits outside of the App component so I am not sure how using it as a dependency even make sense.

    • @xsova113
      @xsova113 Рік тому

      for me it works because if i don't put socket in the dependancy, when I click the button, frontend won't make any update and show the alert message because the socket recieve_message function in the useEffect is not running until it sees the socket thats in the dependency has been triggered.
      EDIT: Actually now it works without the socket dep. interesting

  • @bryanronnie6765
    @bryanronnie6765 Рік тому

    Wow, ce tutoriel is too good man. Sooo concise and neat. Maintenant je peux développer mon multiplayer game in no time. Merci!

  • @kimberlyvillarmente8239
    @kimberlyvillarmente8239 2 роки тому +1

    Hats off! I owed you a lot, this tutorial was the best!!

  • @snackdonw
    @snackdonw 2 роки тому +1

    Bro you've saved my job so many times! ♥️

  • @dweebycat9929
    @dweebycat9929 2 роки тому +1

    Thanks again!

  • @madhanrock5390
    @madhanrock5390 2 роки тому

    This is one of the important topics should be known by web developers! Thanks for this video!

  • @chandruloganathan3725
    @chandruloganathan3725 Рік тому

    Awesome bro it is worked for me I have been tucked in this for more than 2 months

  • @subhamshaw1726
    @subhamshaw1726 Рік тому

    wow really good video. I was struggling with this for last 2 days for implementing in a project. Thank you pedro.

  • @NOTHING-en2ue
    @NOTHING-en2ue Рік тому

    before i start i just hated the socket and said why should i use the socket to message then when found your tutorial i loved the sockets, thanks a lot ❤

  • @sudo_ayush
    @sudo_ayush 3 місяці тому

    This was exceptionally to the point explanation, really the best @Pedro Tech

  • @misterfreezeur4622
    @misterfreezeur4622 Рік тому +1

    great video mate, straight to the point & well explained!

  • @TheOceanLoader
    @TheOceanLoader 2 роки тому

    Brilliant tutorial video. Served me well as a refresher course. One of the few videos I enjoyed watching!

  • @sagarvavadiya5252
    @sagarvavadiya5252 Рік тому

    best video to understand concept of socket io in half hour

  • @samialvi4226
    @samialvi4226 Рік тому

    Great Job man that was one of the best tut i ever had.
    Keep the great work up

  • @AliColak
    @AliColak Рік тому

    Pedro what is the const http = require("http"); doing @ 6:38 ? I'm trying to understand the process

  • @Mast3rBruc31
    @Mast3rBruc31 2 роки тому

    Awesome video! Pedro you have some of the best content on YT! Keep it up!

  • @ĐiệpXuan-g9u
    @ĐiệpXuan-g9u 3 місяці тому

    very detailed, I find it very easy to understand and helps me go deeper into it more easily, thank you bro😘

  • @Ali-Aziz-official
    @Ali-Aziz-official Рік тому

    Great tutorial, I don't have words to praise your content.

  • @funfunfun18
    @funfunfun18 2 роки тому

    Great video Pedro. Exactly what I was looking for - many thanks

  • @ankushchavhan1332
    @ankushchavhan1332 2 роки тому +3

    Really waiting for it 🙂

  • @webapi5513
    @webapi5513 2 роки тому

    That's really amazing tutorial for very beginner like me. Thanks a lot.
    some videos I watched, They first finish server coding first then frontend coding. it was tap for me understand.
    here he code step by step ,
    Kindly Upload more details video on this socket io plz

  • @ZadSoleimaninia
    @ZadSoleimaninia Рік тому +1

    Pedro thank you so much for all the tutorials and efforts going to each and every one of your videos, really appreciate your help, it has helped me tremendously!
    Quick question:
    Would you place a chat app and and api on the same express server? or create 2 different express instances with different ports obviously so that we have different express servers for different purposes?
    I've been a frontend dev for quite many years and start getting into backend quite recently and your videos has helped me quite a lot, so thank you so much!

  • @prathamesh3299
    @prathamesh3299 2 роки тому +1

    You made my life easy my man your so great🤞

  • @minhbaotran180
    @minhbaotran180 2 роки тому +1

    thank you very much, this will help me do my hard project at my university, thank youu

  • @gouravnagar5286
    @gouravnagar5286 22 дні тому

    Wow it was very simple quick and easy to understand tutorial thank you so much for the video 👍

  • @k303k
    @k303k Рік тому

    Thanks a lot for this tutorial pedro! Very easy to follow along.

  • @matheuscorreiadarocha1801
    @matheuscorreiadarocha1801 2 роки тому

    Thank you for this video bro, saved me a lot of time reading documentation!

  • @poojatikhe2046
    @poojatikhe2046 9 місяців тому +1

    WOWWW, simply a nice explaination. Thank you

  • @dedon45
    @dedon45 Рік тому

    Perfect introduction, thanks a lot man :D

  • @blackwolf542
    @blackwolf542 Рік тому

    I really enjoyed your tutorial. It was very easy to follow and understand.

  • @dryoldcrabman6890
    @dryoldcrabman6890 Рік тому

    thank bro you are cool. This really help. I was mad at world. But now world less bad. All becaise video is good of qauility and now I do project. you are the goodness of the yourtube. and this make me happy day.

  • @Muhammadijaz-pt4td
    @Muhammadijaz-pt4td День тому +2

    you explain it very well :)

  • @mohitvishwkarma9391
    @mohitvishwkarma9391 Рік тому

    Great, simple, crisp explanation❤

  • @musm404
    @musm404 2 роки тому

    Bro. you are a lifesaver. keep up the good work.i

  • @iMrM7mdx
    @iMrM7mdx 2 роки тому

    this is an awesome tutorial. well done pedro

  • @rasul3d
    @rasul3d Рік тому

    This is great. I just wanted to learn this. Thanks a lot.

  • @AbhishekKumar-md2zq
    @AbhishekKumar-md2zq 2 роки тому

    Hey thanks, your sokcet video is best over the internet

  • @ThColinPereira
    @ThColinPereira 2 роки тому +1

    This is amazing! Great looking thumbnail btw

  • @mihantharindaedirisinghe9532
    @mihantharindaedirisinghe9532 2 роки тому

    this tutorial really helped me out, thankyou so much

  • @siphillis
    @siphillis Рік тому

    Absolutely superb content and delivery.

  • @namtranhai8150
    @namtranhai8150 Рік тому

    Short but really informative! Thanks a lot

  • @ayushdumasia
    @ayushdumasia 7 місяців тому

    Nice and short explanation , Love from India ❤❤❤❤

  • @bentoby2123
    @bentoby2123 11 місяців тому

    I love you bro LMFAO
    Learned so much in 30mins

  • @malikmukhtar1711
    @malikmukhtar1711 2 роки тому

    What a nice tutorial, keep up the good work.....damn your network is fast

  • @matheustran8009
    @matheustran8009 2 роки тому

    I wish you posted this sooner, would’ve saved me a lot of time XD

  •  11 місяців тому

    thank you, you have an amazing approach to teaching! very inspiring

  • @ItsMrxSean
    @ItsMrxSean 2 роки тому +1

    Thank you! This is super helpful. Cleared things up for me that I've been stuck on for weeks.
    I'm kind of curious what the io information looks like from component to component. Should the client-side socket only be managed in the highest level component (App), or are there other methods?

  • @vicsystems
    @vicsystems Рік тому

    Thanks for taking the time to really break this down

  • @tomasbuzeta3591
    @tomasbuzeta3591 Рік тому

    Awesome! Thanks for sharing and taking the time to explain :)

  • @billblair3155
    @billblair3155 2 роки тому

    Super Cool. Thx another Pedro!🤓

  • @dhriteshkumar1786
    @dhriteshkumar1786 2 роки тому +1

    thanks bro for amazing explanation !!

  • @Lagtcham
    @Lagtcham 2 роки тому +1

    Greetings from Colombia! thanks for the video. One question, why put socket in the useEffect dependencies if its ref is never going to change?

  • @BROOKnim
    @BROOKnim Рік тому +1

    Thanks man , saw this any implemented online playing for my game

  • @abhaytiwari6411
    @abhaytiwari6411 2 роки тому +2

    Big fan 😉 Bro you never disappoint us.

  • @jeff1571
    @jeff1571 2 роки тому +1

    Hey Pedro! Thanks for the tutorials and guides, you really helped me stepped up my coding skills. I'm wondering if you could do Docker tutorial also as I want to deploy a couple of my projects. Have a great day :)

  • @ursuadrian2880
    @ursuadrian2880 2 роки тому +3

    Hi Pedro!
    Nice video.
    I have one question:
    It is okay to put onChange handlers to inputs? If i console.log the state, after every keystroke the state is updated. Isn't a better idea to update the state in onClick handlers, so, we shouldn't update the state after every keystroke? I'm not sure, that's why I'm asking you this. ^^
    Thank you.

  • @MaduVerdinhas
    @MaduVerdinhas 10 місяців тому

    Great class and very easy to follow, thanks @PedroTech!!
    Regards from a fellow brazilian o/

  • @dweebycat9929
    @dweebycat9929 2 роки тому

    Thank you so much, you've explained this video really well!!

  • @mohammedjazeel585
    @mohammedjazeel585 7 місяців тому

    best tutorial about socket io, thank u sir 👍👍

  • @zainulkhan8381
    @zainulkhan8381 Рік тому

    Great explanation, keep up the good work

  • @amitnino
    @amitnino Рік тому +1

    Hey, cool concept, never heard of SSE. How would you secure the connection and make sure the events you received are from a trusted source?

  • @easonhuang4031
    @easonhuang4031 2 роки тому +1

    nice tutorial, subscribed!

  • @Epsio0
    @Epsio0 Рік тому +1

    Thanks for the tutorial. Just for my own curiosity, how would you print a message to all clients including the person who sent it? As you mentioned, the broadcast method emits an event to all client except for the initial sender

  • @hafezfhmi
    @hafezfhmi 2 роки тому

    Awesome! Keep it up with the videos!

  • @andikakurniawan4188
    @andikakurniawan4188 2 роки тому

    great video. it's easy to follow and it's working....

  • @KondzioTVstudio
    @KondzioTVstudio 2 роки тому

    I have never used sockets but its look great, thanks for video

  • @pierovicenti9297
    @pierovicenti9297 Рік тому +1

    what if I want to publish it live? What should I use instead of port 3000 and 3001? I am a bit confused on this

  • @vamsirayapaneni
    @vamsirayapaneni 5 місяців тому

    Loved this one. Thank you

  • @RV-kl2wl
    @RV-kl2wl 2 роки тому

    Very very good channel 👍👍. Keep up the good work.

  • @ilirbajrami2902
    @ilirbajrami2902 2 роки тому +2

    Very nice explanation! But, can you make a tutorial implementing this with Nextjs API routes and using another use case (receiving data from a streaming API for instance) since literally every socket io on internet is about building a chat app.

    • @navedoesthings
      @navedoesthings 2 роки тому

      you can pretty much follow along with this video since there is a more traditional way of starting your express server and initializing the next build.

  • @juanluiss2526
    @juanluiss2526 2 роки тому

    Very nice explanation, thank you! 😄

  • @d4tto92
    @d4tto92 2 роки тому +1

    მადლობელი, კარგი ვიდეო იქნება.

  • @rogermax8063
    @rogermax8063 2 роки тому +2

    Pedro, ótimo vídeo, porém estou com um problema, não estou conseguindo fazer o chat funcionar fora do local host, tenho uma hospedagem para onde mandei o site, alterei onde estava localhost pelo meu domínio, porém não funciona, você sabe como posso fazer com que o chat funcione na minha host, fora do localhost, para pessoas poderem usar o chat em dispositivos diferentes?

  • @Adnan-rz9gm
    @Adnan-rz9gm 2 роки тому

    thank you for the tutorial, though you seem to have missed out on clearing socket.on listener by returning socket.off in the useEffect (memory leak?)

  • @roykim9033
    @roykim9033 2 роки тому

    thank you!! this is the perfect tutorial!

  • @discoverthecode2286
    @discoverthecode2286 2 роки тому +2

    Thanks bro you are a legend i leart ot of from you dear

  • @ethangordon3935
    @ethangordon3935 Рік тому

    Great video thank you Pedro!

  • @Jonsy
    @Jonsy 2 роки тому

    Thank you so much for that. clean tutorial.

  • @rahuldeshpande9997
    @rahuldeshpande9997 10 місяців тому

    This was very helpful, thanks!

  • @justiniyke2955
    @justiniyke2955 Рік тому

    Thanks a lot bro, learnt something new

  • @christopheanfry
    @christopheanfry 2 роки тому

    Thank you so much for your videos very helpful like the way you explain. Nice job 👍

  • @gvbasov
    @gvbasov 10 місяців тому

    this is a great explanation! thx!

  • @amirrezamoraveji5174
    @amirrezamoraveji5174 2 роки тому

    Thank you for this excellent content, I found it very useful

  • @loulou81400
    @loulou81400 2 роки тому +1

    Eu, another great tutorial, I actually made a social network with the help of your series on nodejs react and mysql.. Do you think it's possible to add this kind of app with all the code I have already.. I was thinking about adding this kind of functionality but it's not easy with an existing front-end and back end already created.. Thanks for your amazing job here.. Greetings from France!

  • @Joseph-do9ue
    @Joseph-do9ue 2 роки тому

    Keep going man, very cool

  • @Camilofuentesito
    @Camilofuentesito 5 місяців тому

    muchas gracias por el tutoria rey, aprendi mucho gracias a este video

  • @aleksandrar7955
    @aleksandrar7955 Рік тому

    That's just awsome! thanks a looot! :)