Java socket.io client

Solution 1:

Limited options at this time:

  • http://code.google.com/p/weberknecht/

  • https://github.com/TooTallNate/Java-WebSocket

  • https://github.com/Gottox/socket.io-java-client

sound right as far as WebSockets go. Socket.IO's specific wire protocol do not appear to have been implemented in Java yet, so you may have to deal with that yourself.

Solution 2:

Judging from http://socket.io under "Supported Transports" it could be several different transport protocols:

WebSocket, Adobe® Flash® Socket, AJAX long polling, AJAX multipart streaming, Forever Iframe, JSONP Polling

So, the question is, what is your server supporting?

From the perspective of Java clients the easiest would be WebSockets.

Solution 3:

If you need a client side implementation, checkout java-socket.io.client I made it a few months ago and I believe some people have forked it and upgraded it to the latest version: https://github.com/clwillingham/java-socket.io.client