Skip to content

Commit

Permalink
WebsocketTransport: stop using deprecated setSocket() for SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
paddybyers committed Nov 11, 2019
1 parent 017b77d commit e95e5b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void connect(ConnectListener connectListener) {
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init( null, null, null );
SSLSocketFactory factory = sslContext.getSocketFactory();// (SSLSocketFactory) SSLSocketFactory.getDefault();
wsConnection.setSocket( factory.createSocket() );
wsConnection.setSocketFactory(factory);
}
}
wsConnection.connect();
Expand Down

0 comments on commit e95e5b3

Please sign in to comment.