Updated README.md
- Updated the library to latest version in the sample code. - Fixed a typo in the sample method call for static methods.
This commit is contained in:
@@ -21,7 +21,7 @@ Add the following dependency to your `pom.xml`.
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.socket</groupId>
|
<groupId>io.socket</groupId>
|
||||||
<artifactId>socket.io-client</artifactId>
|
<artifactId>socket.io-client</artifactId>
|
||||||
<version>0.8.3</version>
|
<version>0.9.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
```
|
```
|
||||||
@@ -30,7 +30,7 @@ Add the following dependency to your `pom.xml`.
|
|||||||
Add it as a gradle dependency for Android Studio, in `build.gradle`:
|
Add it as a gradle dependency for Android Studio, in `build.gradle`:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
compile ('io.socket:socket.io-client:0.8.3') {
|
compile ('io.socket:socket.io-client:0.9.0') {
|
||||||
// excluding org.json which is provided by Android
|
// excluding org.json which is provided by Android
|
||||||
exclude group: 'org.json', module: 'json'
|
exclude group: 'org.json', module: 'json'
|
||||||
}
|
}
|
||||||
@@ -131,8 +131,8 @@ OkHttpClient okHttpClient = new OkHttpClient.Builder()
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
// default settings for all sockets
|
// default settings for all sockets
|
||||||
Socket.setDefaultOkHttpWebSocketFactory(okHttpClient);
|
IO.setDefaultOkHttpWebSocketFactory(okHttpClient);
|
||||||
Socket.setDefaultOkHttpCallFactory(okHttpClient);
|
IO.setDefaultOkHttpCallFactory(okHttpClient);
|
||||||
|
|
||||||
// set as an option
|
// set as an option
|
||||||
opts = new IO.Options();
|
opts = new IO.Options();
|
||||||
|
|||||||
Reference in New Issue
Block a user