4.3 Hosting a WebSocket Server on Glitch - Fun with WebSockets!

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

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

  • @GustavoMuniz
    @GustavoMuniz 4 หลายเดือนก่อน +1

    2024 and this video save me and my project, thanks man

  • @batertv
    @batertv 3 ปีที่แล้ว +3

    you are a legend, you saved me from so many complicated bs, i cannot thank you enough youre a god

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

    been bashing my head trying to integrate a WS server into my express project on glitch for a while now and the user-agent bit was very helpful, thanks!

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

      in case anyone is using a custom domain and cant get the connection to open fully, try connecting to glitch's url

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

      @@EChuTaa I am not able to use the link and I always get the 502 error, do you know how to fix this error?

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

      @@nicolaycifuentes3846 the github link in the description?

  • @Леонид-у7п
    @Леонид-у7п ปีที่แล้ว

    thanks man, you gave me right solution!

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

    I just want to say..... THANK YOU !!!!!!! **Instant upgrade to hero status**

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

    Love from india

  • @maketank
    @maketank 3 ปีที่แล้ว +4

    The templates on Glitch (july 2021) no longer offer the Node / Express combo and have been replaced with a Node / Fastify template. It would be helpful to share your default Express template for the video. Great work!

    • @ParametricCamp
      @ParametricCamp  3 ปีที่แล้ว +1

      Oh no! That sucks! Let's see what can we do about it...

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

      @@ParametricCamp Maybe you can just make your version shareable? It's not linked above in the comments. Or perhaps there's another (older) version of Express template lying around the Glitch library for remixing. I guess these would be the quick and easy options rather than changing to Fastly. I would attempt using the Fastly template, but I don't want to waste time on debugging... I want to get to the later chapters related to grasshopper. Thanks!

    • @ParametricCamp
      @ParametricCamp  3 ปีที่แล้ว +1

      @@maketank You can always look at the code here: glitch.com/edit/#!/simple-websocket-server-echo. And actually, the example doesn't use the Express part at all, so you can probably replicate the example with the new 'Hello Node' template. Have you tried?

    • @umaradkhamov6380
      @umaradkhamov6380 ปีที่แล้ว

      @@ParametricCamp I have tried to replicate it using Hello-node example. In their log it shows that my server is running. But I am unable to connect to it throw a client. Can you help with it?

    • @justinspearlord
      @justinspearlord 2 หลายเดือนก่อน

      Thanks I had the same question. I will try to use the code in the example link provided.

  • @Cagatay-gf8mp
    @Cagatay-gf8mp 4 หลายเดือนก่อน

    Bro so fucking thank i almost lose my mind

  • @سیدسروشحسینی
    @سیدسروشحسینی 4 หลายเดือนก่อน

    Thanks :)❤

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

    if i want to deploy a website with a node backend running a websocket server, how can i connect the client to the glitch server ? (not from local host)

  • @prashantchoudhary4725
    @prashantchoudhary4725 ปีที่แล้ว

    Thank you so much

  • @RasselDavid
    @RasselDavid ปีที่แล้ว

    ty

  • @EliasTenpo
    @EliasTenpo 8 หลายเดือนก่อน

    great

  • @imalallawmkima8081
    @imalallawmkima8081 3 ปีที่แล้ว +1

    It display 'Upgrade required' does it have to be relate with ws PORT and http PORT.

    • @ParametricCamp
      @ParametricCamp  3 ปีที่แล้ว +1

      That's just the web visualization, but the WS server works anyway.

  • @xtime5666
    @xtime5666 3 ปีที่แล้ว +1

    THANKS :>

  • @yassoytessaim9297
    @yassoytessaim9297 ปีที่แล้ว

    can i host a websocket in ratchet on glitch?

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

    is it possible to do this with free tier of glitch?

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

    Is there any way I can host the project on namecheap hosting server?

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

    Headers is not required anymore to connect with Glitch.

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

    I keep getting protocol error, [Object] object is invalid. at the user agent part. pls help thx

    • @umaradkhamov6380
      @umaradkhamov6380 ปีที่แล้ว

      I am getting that too. Have you fixed it?

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

    Hello, What if i want to host my node js app on my own domain not glitch, hw do i go about it am stuck here

    • @ParametricCamp
      @ParametricCamp  3 ปีที่แล้ว +1

      That will depend on the services available to you from your hosting provider...

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

      Thank you...my provider has support for node js but running the code from the terminal has been a headache for me bt ill try and figure out a way

  • @rohandagle
    @rohandagle หลายเดือนก่อน

    you my god, been crying over sockets since past 3 months

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

    can i run both express and websocket server on glitch?