Hi,
Can anyone help me out.
I'm implementing web socket in KMM app.
Using CIO engine or OkHttp for android is working fine but facing issue with iOS
Using CIO Engine iOS getting error.
Uncaught Kotlin exception: io.ktor.client.engine.darwin.DarwinHttpRequestException: Exception in http request: Error Domain=NSURLErrorDomain Code=-1011 "There was a bad response from the server."
and when using Darwin getting this error.
exception: kotlin.IllegalStateException: TLS sessions are not supported on Native platform.
Uncaught Kotlin exception: kotlin.IllegalStateException: TLS sessions are not supported on Native platform.
Kindly help me out.
e
e5l
07/27/2023, 9:40 AM
Hey, could you try using
ktor-client-darwin
instead of
ktor-client-cio
on iOS?
a
Anand Verma
07/27/2023, 10:02 AM
Tried both using darwin gettin tsl exception as mentioned in message
e
e5l
07/27/2023, 10:03 AM
Could you share a repro from the darwin engine? I will take a look