From f4177196eb185f84568a854419b4b2f06bae8dbd Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Sun, 13 Jul 2014 15:39:10 +0900 Subject: [PATCH] update README --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb75915..e0a3161 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,13 @@ The latest artifact is available on Maven Central. Add the following dependency com.github.nkzawa engine.io-client - 0.2.1 + 0.2.2 ``` +Or to install it manually, please refer dependencies to [pom.xml](https://github.com/nkzawa/engine.io-client.java/blob/master/pom.xml). + ## Usage Engine.IO-client.java has the similar api with the JS client. You can use `Socket` to connect: @@ -78,6 +80,21 @@ socket.on(Socket.EVENT_OPEN, new Emitter.Listener() { }); ``` +Use custom SSL settings: + +```java +// default SSLContext for all sockets +Socket.setDefaultSSLContext(mySSLContext); + +// set as an option +opts = new Socket.Options(); +opts.sslContext = mySSLContext; +socket = new Socket(opts); +``` + +## Features +This library supports all of the features the JS client does, including events, options and upgrading transport. Android is fully supported. + ### Extra features only for Java client Some features are added for simulating browser behavior like handling cookies. @@ -113,10 +130,6 @@ 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 upgrading transport. Android is fully supported. - ## License MIT