diff --git a/README.md b/README.md index a7c8718..05d07eb 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add the following dependency to your `pom.xml`. io.socket socket.io-client - 0.8.3 + 0.9.0 ``` @@ -30,7 +30,7 @@ Add the following dependency to your `pom.xml`. Add it as a gradle dependency for Android Studio, in `build.gradle`: ```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 exclude group: 'org.json', module: 'json' } @@ -131,8 +131,8 @@ OkHttpClient okHttpClient = new OkHttpClient.Builder() .build(); // default settings for all sockets -Socket.setDefaultOkHttpWebSocketFactory(okHttpClient); -Socket.setDefaultOkHttpCallFactory(okHttpClient); +IO.setDefaultOkHttpWebSocketFactory(okHttpClient); +IO.setDefaultOkHttpCallFactory(okHttpClient); // set as an option opts = new IO.Options();