问题
I am writing an Android app that connects to a server using socket.io (v1.0.4). Is there a socket.io Java client out there that works with socket.io v1.0?
I was originally using the Gottox solution but it only seems to work with socket.io <= v0.92.
Some other libraries available
- https://github.com/koush/AndroidAsync
- https://github.com/nkzawa/socket.io-client.java
nkzawa's claims to be supported for 1.0 but there seem to be some issues with it.
回答1:
I got nkzawa's solution working on my server running socket.io v1.0.6. If you aren't using Maven you have to install quite a few dependencies.
I answered this question's duplicate here.
来源:https://stackoverflow.com/questions/24988020/socket-io-java-client-with-support-for-1-0-x