From 806d3c51f2d0330cc918ab2e95132f896b6b7d6e Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Tue, 23 Apr 2013 00:39:53 +0900 Subject: [PATCH] update README --- README.md | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2d12ea6..9219fe9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,29 @@ -engine.io-client.java -===================== +# Engine.IO-client.java [![Build Status](https://travis-ci.org/nkzawa/engine.io-client.java.png?branch=master)](https://travis-ci.org/nkzawa/engine.io-client.java) -Engine.IO Client Library for Java + +This is the Engine.IO Client Library for Java, which is simply ported from the [client](https://github.com/LearnBoost/engine.io-client) for JavaScript. + +## Hello World +Engine.IO-client.java has the similar api with the client for js. You can use `Socket` to connect as follows: + +```java +Socket socket = new Socket("ws://localhost") { + @Override + public void onopen() {} + + @Override + public void onmessage(String data) {} + + @Override + public void onclose() {} +}; +socket.open(); +``` + +## Features +This library supports all of the features the JS client does, except the Flash transport, including events, options and upgrage. + +## License + +MIT +