Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
1144 Discussions

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

利军_赵_
Beginner
352 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
352 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.

Reply