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

This package is not working at all

Open arisAlexis opened this issue 1 year ago • 11 comments

I am using the vanilla example on a flutter mobile app with android. I follow all instructions and I run a dart server with the example and paste the client in my app. The server gets a connection but there is no msg event emited and no ack from the server. Also on the client the on connect function is never run.

I don't have to paste an example here. I am using the default example, if it doesn't work out of the box this package is totally defunct then?

arisAlexis avatar Mar 28 '23 12:03 arisAlexis

which version are you using for client and server?

jumperchen avatar Mar 29 '23 05:03 jumperchen

@jumperchen socket can’t connect in Real Device. I using socket_io_client: ^2.0.0-beta.4-nullsafety.0 and Flask-SocketIO 5.3.2

L-Pisitpipattana avatar Apr 03 '23 06:04 L-Pisitpipattana

Works on my local - nodejs with socket.io on Mac and flutter in iOS simulator. Haven't tested on real device yet.

Big thanks to maintainers :)

ugran avatar Apr 20 '23 22:04 ugran

@jumperchen socket can’t connect in Real Device. I using socket_io_client: ^2.0.0-beta.4-nullsafety.0 and Flask-SocketIO 5.3.2

Hi @jumperchen I was just able to get it working with my Flask app, you can check more about it here: https://github.com/rikulo/socket.io-client-dart/issues/329

It is working with:

  • socket_io_client: ^2.0.1
  • Flask-SocketIO==5.2.0
  • And a physical Android device

denisvitez avatar Apr 21 '23 16:04 denisvitez

It's broken when making a release version of the app for web fyi. Everything else works for me via Cloud Run

ollyde avatar May 11 '23 14:05 ollyde

@ollyde Did you solve this problem?

PatrikGolubar avatar May 25 '23 21:05 PatrikGolubar

@PatrikGolubar upgraded to the most recent, and also made sure that the nodejs package version was the most recent version 4.XX

ollyde avatar May 26 '23 08:05 ollyde

@ollyde I still have problem.. trough http is working fine but under https it's not working. It says that connection to wss failed. But I have certificate etc...

PatrikGolubar avatar May 29 '23 11:05 PatrikGolubar

@PatrikGolubar We are using WSS on live services which is usually socket 433, for example GCloud

ollyde avatar May 29 '23 11:05 ollyde

So WSS can't be on port 3000?

PatrikGolubar avatar May 29 '23 12:05 PatrikGolubar

@PatrikGolubar It depends what your hosting setup is; but if you use something like Google CloudRun it's locked to 433..

ollyde avatar May 29 '23 12:05 ollyde