From 072b585973604f70b220f9940cf36654b497ae7a Mon Sep 17 00:00:00 2001 From: Shobhit Puri Date: Thu, 13 Jul 2017 19:10:56 -0400 Subject: [PATCH] Updated README.md - Updated the library to latest version in the sample code. - Fixed a typo in the sample method call for static methods. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();