File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
lib/src/main/java/ua/naiksoftware/stomp Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 11package ua .naiksoftware .stomp ;
22
3- import android .os .Looper ;
43import android .util .Log ;
54
65import org .java_websocket .WebSocket ;
7- import org .java_websocket .client .DefaultSSLWebSocketClientFactory ;
86import org .java_websocket .client .WebSocketClient ;
97import org .java_websocket .drafts .Draft_17 ;
108import org .java_websocket .exceptions .InvalidDataException ;
1917import java .util .Map ;
2018import java .util .TreeMap ;
2119
22- import javax .net .ssl .SSLContext ;
23-
2420import rx .Observable ;
2521import 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 }
You can’t perform that action at this time.
0 commit comments