Hey y'all, I'm playing around with Kotlin Native and running into some troubles. My current idea is to write a shared network client for an android & ios app.
The API utilizes websockets, I guess my first question is, is that even possible? Can I use Ktor's websocket client on both platforms? native and jvm? I haven't found any details about this online.
Currently, I'm just trying to get set up and import the ktor client into my project. I created a multiplatform project with the IntelliJ IDEA 2018.03 EAP wizard. All I basically did was adding the Ktor dependency (like shown in the KotlinConf app) and creating an instance of
HttpClient
in the common source folder.
Compiling the jar works but when building for iOS I run into this error: