Hey guys, can we use ktor websocket on a KMM andro...
# ktor
b
Hey guys, can we use ktor websocket on a KMM android/ios project
a
Do you mean on the client or server side?
b
yes, i want to use Ktor websocket on IOS
a
As part of HTTP server or client?
b
client
a
Then yes. The
Darwin
(on iOS) and
OkHttp
(on Android) engines support WebSockets.
K 1
b
i am unable to get
OKhttp
working on android, i am getting the following error
failed with exception: java.lang.IllegalAccessError: Field 'okhttp3.OkHttpClient$Builder.eventListenerFactory' is inaccessible to class 'okhttp3.OkHttpClient' (
a
Can you share your project?