Great vid, thanks for the help! I could be wrong but I think you need to update the server name in your nginx config. I was trying to set up a connection using the 'ws' library and the connection kept failing when I was addressing the server using the domain name that I configured the VM with but worked with the ip address. The reason being I hadn't updated the server name to my domain in the nginx. Maybe the fact that your client and host scripts are hosted on the same server means that the client behaves properly here but in general for anyone looking to set up a websocket connection you need to update the server name in the nginx or your socket.io connection will fall back to long polling or worse in my case my ws connection simply did not connect
@@zenon84 sorry Jonathan I don't :( I made this comment >2 years ago now. I can only vaguely remember the project I was working on. The specific change I made here is long since forgotten I am afraid
Google's Cloud Run DOES support WebSocket applications. Here is a link to their tutorial on how to set it up: cloud.google.com/run/docs/tutorials/websockets. Despite that this tutorial was still informative.
thanks dear, this was totally useful for me, thanks in advanced
Great! Do Google Sheets suppport websockets? If not, is there a workaround?
Google cloud run support websocket
I got the feeling inside my bones
Awesome 👍
Great vid, thanks for the help! I could be wrong but I think you need to update the server name in your nginx config. I was trying to set up a connection using the 'ws' library and the connection kept failing when I was addressing the server using the domain name that I configured the VM with but worked with the ip address. The reason being I hadn't updated the server name to my domain in the nginx.
Maybe the fact that your client and host scripts are hosted on the same server means that the client behaves properly here but in general for anyone looking to set up a websocket connection you need to update the server name in the nginx or your socket.io connection will fall back to long polling or worse in my case my ws connection simply did not connect
Do you have an example of what you updated? I am also trying to use ws and I keep getting a cannot connect to 'ws://url'
@@zenon84 sorry Jonathan I don't :( I made this comment >2 years ago now. I can only vaguely remember the project I was working on. The specific change I made here is long since forgotten I am afraid
great 👌
Google's Cloud Run DOES support WebSocket applications. Here is a link to their tutorial on how to set it up: cloud.google.com/run/docs/tutorials/websockets. Despite that this tutorial was still informative.
Thank you, I was wondering the same thing when he said that it doesn't, i remember that it should be better for small use case due to scalability.