socket.io-client-dart
socket.io-client-dart copied to clipboard
This package is not working at all
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?
which version are you using for client and server?
@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
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 :)
@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
It's broken when making a release version of the app for web fyi. Everything else works for me via Cloud Run
@ollyde Did you solve this problem?
@PatrikGolubar upgraded to the most recent, and also made sure that the nodejs package version was the most recent version 4.XX
@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 We are using WSS on live services which is usually socket 433, for example GCloud
So WSS can't be on port 3000?
@PatrikGolubar It depends what your hosting setup is; but if you use something like Google CloudRun it's locked to 433..