Do we still lack Websocket support in ktor, on iOS...
# multiplatform
h
Do we still lack Websocket support in ktor, on iOS, i saw a thread and an open issue which was active back in 2021, i dont seem to find an document around multi platform implementation support of websocket with any of the engine, i do see a socket implementation demo app, which plays around native okhttp and NSUrlSession based implementations
m
Can't we use ktor as common client for multi-platform
h
Ktor can be used, and it does work for http but i am not super sure about, Websockets.
I see that darwin client supports both, http and websockets on ios and okhttp supports both as well, i guess will need to dig more into it
a
@humbledroid I am interested to know about darwin with okhttp. As per documentation, Ktor supports okhttp on JVM + Android only. Please let me know if you find anything different. Thanks
h
yeah, so we can provide actual implementation based on the platforms, so we can have platform specific clients passed onto the
UseCase
or a
VM
which then uses
darwin/okhttp
to do the heavy lifting
👍 1