update README and History

This commit is contained in:
Naoyuki Kanezawa
2015-01-28 23:01:27 +09:00
parent f28e576b74
commit daf6d6a068
2 changed files with 19 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
0.4.0 / 2015-01-25
==================
* compatible with engine.io 1.5.1
* fix default port detection when host is specified
* add `Socket#id()` for retrieving `id`
* make `Socket.priorWebsocketSuccess` private
0.3.1 / 2014-11-04
==================

View File

@@ -6,19 +6,27 @@ This is the Engine.IO Client Library for Java, which is simply ported from the [
See also: [Socket.IO-client.java](https://github.com/nkzawa/socket.io-client.java)
## Installation
The latest artifact is available on Maven Central. Add the following dependency to your `pom.xml`.
The latest artifact is available on Maven Central. To install manually, please refer dependencies to [pom.xml](https://github.com/nkzawa/engine.io-client.java/blob/master/pom.xml).
### Maven
Add the following dependency to your `pom.xml`.
```xml
<dependencies>
<dependency>
<groupId>com.github.nkzawa</groupId>
<artifactId>engine.io-client</artifactId>
<version>0.3.1</version>
<version>0.4.0</version>
</dependency>
</dependencies>
```
Or to install it manually, please refer dependencies to [pom.xml](https://github.com/nkzawa/engine.io-client.java/blob/master/pom.xml).
### Gradle
Add it as a gradle dependency for Android Studio, in `build.gradle`:
```groovy
compile 'com.github.nkzawa:engine.io-client:0.4.0'
```
## Usage
Engine.IO-client.java has the similar api with the JS client. You can use `Socket` to connect: