I had a couple of issues with setting up this library:
-
the latest node.js socket.io has moved to version 3.0, which is not compatible with this library.
Fix: move node.js socket.io to version 2.3.0
-
OKhttp3 error with android socket.io 0.6.0, caused by incompatibility with Firestore
Fix: changed to android socket.io 0.4.2 like so implementation 'com.github.nkzawa:socket.io-client:0.4.2'
-
The library was not working with Android 9.0+
Fix: Had to set up a https connection.
I think it would be nice to add the fact that it doesn't work with socket.io 3.0 in the documentation.
Edit: Fixed grammar and formatting