File tree Expand file tree Collapse file tree
websockets-rxjava-example
src/main/java/com/appunite/socket Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11buildscript {
22 repositories {
33 mavenCentral()
4+ jcenter()
45 }
56 dependencies {
67 classpath ' com.android.tools.build:gradle:2.1.0-beta1'
@@ -11,6 +12,7 @@ apply plugin: 'com.android.application'
1112
1213repositories {
1314 mavenCentral()
15+ jcenter()
1416 maven { url ' https://commondatastorage.googleapis.com/maven-repository/' }
1517}
1618
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public RetentionFragment() {
148148 final OkHttpClient okHttpClient = new OkHttpClient ();
149149 final RxWebSockets webSockets = new RxWebSockets (okHttpClient , new Request .Builder ()
150150 .get ()
151- .url ("ws://10.10.0.2:8080 /ws" )
151+ .url ("ws://130.211.87.140:80 /ws" )
152152 .addHeader ("Sec-WebSocket-Protocol" , "chat" )
153153 .build ());
154154 final GsonObjectSerializer serializer = new GsonObjectSerializer (gson , Message .class );
Original file line number Diff line number Diff line change 11buildscript {
22 repositories {
33 mavenCentral()
4+ jcenter()
45 }
56 dependencies {
67 classpath ' com.android.tools.build:gradle:2.1.0-beta1'
@@ -16,6 +17,7 @@ targetCompatibility = 1.7
1617
1718repositories {
1819 mavenCentral()
20+ jcenter()
1921}
2022
2123dependencies {
You can’t perform that action at this time.
0 commit comments