Hi, Can anyone help me out. I'm implementing web s...
# ktor
a
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
Hey, could you try using
ktor-client-darwin
instead of
ktor-client-cio
on iOS?
a
Tried both using darwin gettin tsl exception as mentioned in message
e
Could you share a repro from the darwin engine? I will take a look