I’m writing an Engine.IO Java Client
I’ve been working for the Engine.IO client library for Java. This Library was simply ported from the JS client, which means it supports most features the original library supports. It already can communicate with a server, although is still in development phase.
https://github.com/nkzawa/engine.io-client.java
Simple Example
Socket is an abstract class, so you have to implement some callback methods. Then just call open.
Socket socket = new Socket("ws://localhost") {
@Override
public void onopen() {}
@Override
public void onmessage(String data) {}
@Override
public void onclose() {}
};
socket.open();
Of course, we need a Socket.IO Java client too. I’m working on it, and it will be built on top of this Engine.IO Client.