facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.53k stars 2.01k forks source link

How to set or enforce TLS 1.3 version? #672

Open MansoorZ opened 7 months ago

MansoorZ commented 7 months ago

I am trying to set my TLS version as 1.3 but unfortunately I am not able to do that. Could you please help me to where I can set my TLS version in the code?

Before my server configuration was TLSv1.2 , in this I can connect the web-socket without any issue. After my server TLS version has been changed to TLSv1.3, now I am not able to connect the web-socket by using this SR Library.

Printing description of error: Error Domain=NSOSStatusErrorDomain Code=-9836 "(null)" UserInfo={_kCFStreamErrorCodeKey=-9836, _kCFStreamErrorDomainKey=3}

It would be very helpful If I get the solution ASAP. Thanks in advance for your support.

FYI, Using Xcode 15.1, ios 17.1,

Thanks Mansoor