Node.js Socket.io Namespaces, Rooms and Connections 02

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024
  • Written Tutorial:
    go.ipenywis.co...
    -- Official Links---
    Official Website: ipenywis.com
    Official Facebook: go.ipenywis.com...
    Official Twitter: go.ipenywis.com...
    --Support US--
    By Becoming a Patreon: go.ipenywis.com...

ความคิดเห็น • 52

  • @hamzarasool7669
    @hamzarasool7669 2 ปีที่แล้ว

    the only tutorial on youtube , regarding namespaces, Thanks bro

  • @Bargains20xx
    @Bargains20xx 4 ปีที่แล้ว +1

    some people just can't differentiate between a good stuff and not so good stuff. I just can't understand why there are 21 dislikes.
    This is the best thing on socket io I have found till date

  • @kiranbhujbal4060
    @kiranbhujbal4060 4 ปีที่แล้ว +6

    I was searching for this tutorial in my whole life.... just awesome

  • @chadconway335
    @chadconway335 5 ปีที่แล้ว +5

    Thanks so much. I know you mention the socket.io docs are easy and straightforward but I could not get their namespace example functioning. You straightened me out, thanks!

  • @sakinemazlomyar2543
    @sakinemazlomyar2543 4 ปีที่แล้ว

    you can use npm install nodemon --save and nodemon server.js in your package.json and ==> npm run start which means you do not need to restart server everytime you make changes! And great video!!Simple and usefull!!

  • @afolabiadegorite4815
    @afolabiadegorite4815 4 ปีที่แล้ว

    Still very relevant after two years, Thanks alot 👍🏼

    • @CoderOne
      @CoderOne  4 ปีที่แล้ว

      Glad it still helps New tutorials will be added in the future.

  • @legendguitargamer
    @legendguitargamer 6 ปีที่แล้ว +4

    Dude, aaaaaawesome job! It's really helping me out with a little project of mine. Thanks for deliver this for free

    • @CoderOne
      @CoderOne  6 ปีที่แล้ว

      Thanks, hope you enjoy coding :D

  • @argieabedejos760
    @argieabedejos760 4 ปีที่แล้ว

    Thank you for this video man. You saved us a lot of time studying socket io

  • @nowoadisuryo7069
    @nowoadisuryo7069 5 ปีที่แล้ว +4

    Thank u brother for this tutorial, really help me

  • @kapilchauhan7954
    @kapilchauhan7954 4 ปีที่แล้ว +1

    That's what I like👍👍👍
    Feat Bruno Mars🤣
    Thanks for easy explanation

  • @phokgedimaja327
    @phokgedimaja327 2 ปีที่แล้ว

    On 8:24 you can use
    io.of('/games').emit(data)
    As well

  • @DaggieBlanqx
    @DaggieBlanqx 2 ปีที่แล้ว

    While socketIo has a documentation. The part about rooms and namespaces is a bit unclear. Thank you for clarifying the rooms and namespaces concept.

  • @akeinchina
    @akeinchina 3 ปีที่แล้ว

    Great video! Thank you!

  • @humayunakhtar2116
    @humayunakhtar2116 5 ปีที่แล้ว

    Thanks brother you explained it in quite easy way

  • @kevinkinsey5189
    @kevinkinsey5189 4 ปีที่แล้ว +1

    Thank you sooo much for this amazing tutorial. Just a small question: what's the use of 'express' and the variable 'app' here?

    • @CoderOne
      @CoderOne  4 ปีที่แล้ว

      Express is a Nodejs Framework that makes it easier for us to write RESTFUL APIs
      The app variable is the instance of the Express server we use to create API ENDPOINTS and many more.
      In this particular tutorial, we haven't used Express since I totally forget to remove the variable up there that were left from the previous socketio tutorials.

    • @kevinkinsey5189
      @kevinkinsey5189 4 ปีที่แล้ว

      CoderOne Thanks for the explanation.

  • @chrismanuel8993
    @chrismanuel8993 6 ปีที่แล้ว +1

    Exactly what i need. Thanks man!

  • @handywijaya6904
    @handywijaya6904 5 ปีที่แล้ว

    i have a problem in namespacing, i have first set up the global io and then i set another namespace, making it const pm=io.of('/pm'). however, when i'm using pm.on('connection'), the global connection also get trigered, is there something wrong?

  • @love.ly.
    @love.ly. 5 ปีที่แล้ว

    Thanks you for this video. Very well explained

  • @lancerdonnie
    @lancerdonnie 4 ปีที่แล้ว

    Just what I needed. Thank you

  • @ivanc4652
    @ivanc4652 5 ปีที่แล้ว

    thanks man. Greets from Colombia.

  • @captaindryvids6909
    @captaindryvids6909 5 ปีที่แล้ว +1

    Perfect, exactly what I need!

  • @anthonytonev1357
    @anthonytonev1357 5 ปีที่แล้ว +1

    you use the same apps and technology like me - subbed.

  • @maheshmahadar4780
    @maheshmahadar4780 3 ปีที่แล้ว

    in my website i cant use socket.oi multiple pages.
    is it valid or not i am doing ?

  • @juanvidal6067
    @juanvidal6067 4 ปีที่แล้ว

    Thanks for the video! I've got a question: When checking if the room exist in the JoinRoom part you put a return before emiting the success or error... for me works fine without that return... is there a reason for you to added it?

    • @CoderOne
      @CoderOne  4 ปีที่แล้ว

      The reason is simply for quiting the callback function since an error has been raised so we don't need to continue the execution in this case it is optional but in a different scenario if you have more code to come afterwards it would be important that's why it works fine for you without it.

    • @juanvidal6067
      @juanvidal6067 4 ปีที่แล้ว

      @@CoderOne Thanks!

  • @Luka38
    @Luka38 5 ปีที่แล้ว +1

    Thanks man! This video helped a lot!

  • @ลิอิ้ววววว
    @ลิอิ้ววววว 4 ปีที่แล้ว

    Could you use socket io connect and send to external websocket server ??
    ex. client server A server B

  • @BraziliansDid911
    @BraziliansDid911 6 ปีที่แล้ว

    great tutorial. btw nodemon can refresh your server automatically without having to constantly reboot from your terminal.

    • @CoderOne
      @CoderOne  6 ปีที่แล้ว

      Nodemon is a helper tool that will make it easier for us to auto restart on updating (changing) it keeps an eye on the files that are on the development scope and on file save (Ctrl + s) it auto restarts the server.
      You can use normal node compiler for doing manual restarts.

  • @EricSartor
    @EricSartor 5 ปีที่แล้ว

    Quick shout out to the Rocket League homies out there. What a save!

  • @vandanamahadar1675
    @vandanamahadar1675 3 ปีที่แล้ว

    Thank you very much

  • @IstanaAnginWorldwide
    @IstanaAnginWorldwide 3 ปีที่แล้ว

    will this still work? or is it socket.io rooms now?

  • @eyalshnitzerful
    @eyalshnitzerful 6 ปีที่แล้ว

    Great video. Thanks alot man!

  • @vandanamahadar1675
    @vandanamahadar1675 3 ปีที่แล้ว

    Exactly what i want

  • @KADTutoriales
    @KADTutoriales 5 ปีที่แล้ว

    I love this video

  • @carlosarturogalvangrajales5365
    @carlosarturogalvangrajales5365 5 ปีที่แล้ว

    Thanks a lot!!!

  • @rommyarb
    @rommyarb 5 ปีที่แล้ว +1

    the video is still in low quality, even if I choose 1080p

  • @oofusmcdoofus
    @oofusmcdoofus 6 ปีที่แล้ว

    U made a typo... Its written joureny 😂😂

  • @abdulrhmankhallil8254
    @abdulrhmankhallil8254 6 ปีที่แล้ว

    Who is the hell is disliking this video!!!!

    • @gosnooky
      @gosnooky 5 ปีที่แล้ว

      I'd say it's people who can't understand his speech. I'm having difficulty understanding his accent, but it doesn't warrant a dislike!

    • @kingundfaker
      @kingundfaker 5 ปีที่แล้ว

      @@gosnooky
      what accent? :D

  • @seanwei4025
    @seanwei4025 4 ปีที่แล้ว

    You are cute

  • @bengunn8365
    @bengunn8365 6 ปีที่แล้ว

    Too fast.

    • @CoderOne
      @CoderOne  6 ปีที่แล้ว +2

      making the video too long isn't good for learners, just try to watch it again

    • @humayunakhtar2116
      @humayunakhtar2116 5 ปีที่แล้ว

      @@CoderOne It was perfect for me . I played it on 1.5 and for me still it was great short videos are great for learning