Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
14 Views

How to use •libsioclient_tls.a on iOS platform to connect to Server with SSL?

Hi, All:

        How to use libsioclient_tls.a on iOS platform to connect to Server with SSL?

  • libsioclient.a - this library includes Socket.IO C++ client without TLS features.
  • libsioclient_tls.a - this library includes the Socket.IO C++ client with TLS features

        I have replace libsioclient instead of libsioclient_tls, but it still can't work.

        On Android platform, it is ok with below code:       

IO.Options opt = new IO.Options();
opt.forceNew = true;
opt.reconnection = true;
opt.transports = new String[]{"websocket", "polling"};

opt.secure = true;
opt.hostnameVerifier = new MyHostnameVerifier(NetUtil.getHost(url));
if (null != sslContext) {
    opt.sslContext = sslContext;
}

 

 

Socket.IO C++ Client

Tags (2)
0 Kudos
1 Reply
Highlighted
14 Views

Hi,

Hi,

Please validate your server's certificate if SSL/TLS is enabled. libsioclient_tls.a provided in the release package will verify server's certificate during handshaking.

0 Kudos