Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

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

利军_赵_
Beginner
722 Views

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

0 Kudos
1 Reply
Jianjun_Z_Intel
Employee
722 Views

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
Reply