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!
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 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!
@@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?
@@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?
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)
2024 and this video save me and my project, thanks man
you are a legend, you saved me from so many complicated bs, i cannot thank you enough youre a god
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!
in case anyone is using a custom domain and cant get the connection to open fully, try connecting to glitch's url
@@EChuTaa I am not able to use the link and I always get the 502 error, do you know how to fix this error?
@@nicolaycifuentes3846 the github link in the description?
thanks man, you gave me right solution!
I just want to say..... THANK YOU !!!!!!! **Instant upgrade to hero status**
Love from india
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!
Oh no! That sucks! Let's see what can we do about it...
@@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!
@@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?
@@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?
Thanks I had the same question. I will try to use the code in the example link provided.
Bro so fucking thank i almost lose my mind
Thanks :)❤
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)
Thank you so much
ty
great
It display 'Upgrade required' does it have to be relate with ws PORT and http PORT.
That's just the web visualization, but the WS server works anyway.
THANKS :>
can i host a websocket in ratchet on glitch?
is it possible to do this with free tier of glitch?
Is there any way I can host the project on namecheap hosting server?
Headers is not required anymore to connect with Glitch.
I keep getting protocol error, [Object] object is invalid. at the user agent part. pls help thx
I am getting that too. Have you fixed it?
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
That will depend on the services available to you from your hosting provider...
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
you my god, been crying over sockets since past 3 months
can i run both express and websocket server on glitch?