Skip to content

Commit 81916e9

Browse files
committed
Fix build
1 parent 10ac44f commit 81916e9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/src/main/java/ua/naiksoftware/stomp/WebSocketsConnectionProvider.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package ua.naiksoftware.stomp;
22

3-
import android.os.Looper;
43
import android.util.Log;
54

65
import org.java_websocket.WebSocket;
7-
import org.java_websocket.client.DefaultSSLWebSocketClientFactory;
86
import org.java_websocket.client.WebSocketClient;
97
import org.java_websocket.drafts.Draft_17;
108
import org.java_websocket.exceptions.InvalidDataException;
@@ -19,8 +17,6 @@
1917
import java.util.Map;
2018
import java.util.TreeMap;
2119

22-
import javax.net.ssl.SSLContext;
23-
2420
import rx.Observable;
2521
import rx.Subscriber;
2622

@@ -116,16 +112,6 @@ public void onError(Exception ex) {
116112
}
117113
};
118114

119-
if(mUri.startsWith("wss")) {
120-
try {
121-
SSLContext sc = SSLContext.getInstance("TLS");
122-
sc.init(null, null, null);
123-
mWebSocketClient.setWebSocketFactory(new DefaultSSLWebSocketClientFactory(sc));
124-
} catch (Exception e) {
125-
e.printStackTrace();
126-
}
127-
}
128-
129115
mWebSocketClient.connect();
130116
haveConnection = true;
131117
}

0 commit comments

Comments
 (0)