socket.io-client-dart
socket.io-client-dart copied to clipboard
onDisconnect in IOS socket_io_client: ^1
It notifies me after a few seconds when I turn off the internet socket.onDisconnect((data) { print('onDisconnect'); }); good in android device
Is there a way to get better?
Pub get not able to install package. See error below:
Because no versions of socket_io_client match 1.0.1 and no versions of socket_io_client match >1.0.1 <2.0.0, socket_io_client ^1.0.1 is forbidden. So, because flutter_chat depends on socket_io_client ^1.0.1, version solving failed. pub get failed (1; So, because flutter_chat depends on socket_io_client ^1.0.1, version solving failed.)
Also I attempted to revert to an older version but null safety is a must in flutter now.