Naoyuki Kanezawa 06c1da57b4 thread constraint
2013-05-06 20:48:38 +09:00
2013-05-06 20:48:38 +09:00
2013-04-22 03:37:28 +09:00
2013-04-22 03:37:28 +09:00
2013-04-22 22:45:50 +09:00
2013-05-05 18:37:34 +09:00
2013-05-05 17:59:35 +09:00

Engine.IO-client.java

Build Status

This is the Engine.IO Client Library for Java, which is simply ported from the client for JavaScript.

See also: https://github.com/nkzawa/socket.io-client.java

Usage

Engine.IO-client.java has the similar api with the js client. You can use Socket to connect:

socket = new Socket("ws://localhost") {
  @Override
  public void onopen() {
    socket.send("hi");
    socket.close();
  }

  @Override
  public void onmessage(String data) {}

  @Override
  public void onclose() {}
};
socket.open();

You can receive events as follows:

socket.on(Socket.EVENT_ERROR, new Emitter.Listener() {
  @Override
  public void call(Object... args) {
    Exception err = (Exception)args[0];
  }
});

See the Javadoc for more details.

http://nkzawa.github.io/engine.io-client.java/apidocs/

Features

This library supports all of the features the JS client does, including events, options and upgraging transport.

License

MIT

Description
Engine.IO Client Library for Java
Readme MIT 632 KiB
Languages
Java 99.1%
JavaScript 0.8%
Makefile 0.1%