Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NaikSoftware committed Apr 5, 2017
1 parent 10ac44f commit 81916e9
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package ua.naiksoftware.stomp;

import android.os.Looper;
import android.util.Log;

import org.java_websocket.WebSocket;
import org.java_websocket.client.DefaultSSLWebSocketClientFactory;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.drafts.Draft_17;
import org.java_websocket.exceptions.InvalidDataException;
Expand All @@ -19,8 +17,6 @@
import java.util.Map;
import java.util.TreeMap;

import javax.net.ssl.SSLContext;

import rx.Observable;
import rx.Subscriber;

Expand Down Expand Up @@ -116,16 +112,6 @@ public void onError(Exception ex) {
}
};

if(mUri.startsWith("wss")) {
try {
SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, null, null);
mWebSocketClient.setWebSocketFactory(new DefaultSSLWebSocketClientFactory(sc));
} catch (Exception e) {
e.printStackTrace();
}
}

mWebSocketClient.connect();
haveConnection = true;
}
Expand Down

0 comments on commit 81916e9

Please sign in to comment.