socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

Unable to connect over HTTPS on the cloud

Open Domzak opened this issue 3 years ago • 11 comments

Hello guys, I'm facing a issue with socket client. I'm able to connect and use It locally but unfortunately when I uploaded to GCP or AWS things changed as the connection is over HTTPS. I tried all the solutions provided in the github, stackoverflow... There is no version mismatch as the same version of the client and server are being used locally and remotely. So I don't understand how to solve..!

code.png code2.pngcode3.png

Domzak avatar Aug 28 '21 20:08 Domzak

I am also getting a "timeout" error for https URL

VinayakMoger avatar Sep 21 '21 08:09 VinayakMoger

I'm facing the same issue. Anyone got a solution?

TimeLord2010 avatar Sep 21 '21 19:09 TimeLord2010

Have you tried [socket_io_client version 2](socket_io_client: ^2.0.0-beta.4-nullsafety.0)? It solved my problem

TimeLord2010 avatar Sep 22 '21 16:09 TimeLord2010

Getting same issue with [socket_io_client version 2](socket_io_client: ^2.0.0-beta.4-nullsafety.0)

moksh-mahajan avatar Nov 18 '21 06:11 moksh-mahajan

Have you tried [socket_io_client version 2](socket_io_client: ^2.0.0-beta.4-nullsafety.0)? It solved my problem

what is the server side socket IO version that you use?

minhtritc97 avatar Dec 02 '21 09:12 minhtritc97

Hi, has anyone been able to solve this issue? I'm also gettign a timeout error on connecting to GCP cloud run socketio server. I'm using the 2.0.02-beta.4-nullsafety.0 version and socket.io 4.1.3 on the server

ThamMK avatar Apr 25 '22 07:04 ThamMK

Hi, has anyone been able to solve this issue? I'm also gettign a timeout error on connecting to GCP cloud run socketio server. I'm using the 2.0.02-beta.4-nullsafety.0 version and socket.io 4.1.3 on the server

Hi, actually GCP Cloud Run does support websockets but this package doesn't connect properly to GCP, you can go with AWS ECS, Heruko or DigitalOcean

Domzak avatar Apr 25 '22 10:04 Domzak

Hi, has anyone been able to solve this issue? I'm also gettign a timeout error on connecting to GCP cloud run socketio server. I'm using the 2.0.02-beta.4-nullsafety.0 version and socket.io 4.1.3 on the server

Hi, actually GCP Cloud Run doesn't support websockets, you can go with AWS ECS, Heruko or DigitalOcean

Oh, it doesn't support? Cause our team has managed to get the GCP cloud run socket.io server working for our angular web apps. It only doesn't work with our flutter mobile app using this socket io package. I might be mistaken but theres some Google tutorials on using websockets and socket.io on cloud run too.

https://cloud.google.com/run/docs/triggering/websockets https://cloud.google.com/run/docs/tutorials/websockets

ThamMK avatar Apr 26 '22 03:04 ThamMK

Hi, has anyone been able to solve this issue? I'm also gettign a timeout error on connecting to GCP cloud run socketio server. I'm using the 2.0.02-beta.4-nullsafety.0 version and socket.io 4.1.3 on the server

Hi, actually GCP Cloud Run doesn't support websockets, you can go with AWS ECS, Heruko or DigitalOcean

Oh, it doesn't support? Cause our team has managed to get the GCP cloud run socket.io server working for our angular web apps. It only doesn't work with our flutter mobile app using this socket io package. I might be mistaken but theres some Google tutorials on using websockets and socket.io on cloud run too.

https://cloud.google.com/run/docs/triggering/websockets https://cloud.google.com/run/docs/tutorials/websockets

Oh ! My bad, sorry I wrote nonsense things and I corrected it. Cloud Run supports websockets, the only thing is causing trouble should be the package improperly connecting.

Domzak avatar Apr 27 '22 15:04 Domzak

Did anyone mange to resolve this over App Engine?

Sockets are working for everything except Web over WSS. Web with debug is working with WS & Local.

I'm using socket_io_client: ^2.0.0-beta.4-nullsafety.0

ollyde avatar May 15 '22 13:05 ollyde

Same question here for google cloud.

ShakeShakeJiang avatar Jun 25 '23 13:06 ShakeShakeJiang