You could just write your own engine instead of using there default ones, or send a patch to fix iOS to use
reuseAddress.
Honestly I can't remember, I think I wrote it using OkHttp (was Android only).
I would google around see if/what people have done specifically on iOS. Also ReactNative and Cordova all do things like "hosting" webpages locally to render, so I would be interested in what they do to show those locally
m
Maxime Dzierwa
09/18/2024, 12:54 PM
Hi, just to let you know that I came back to this problem and by adding
reusePort
(already existed just not applied) to ktor.server.cio I can now start/stop it following ios lifecycle and everything is working fine. I need more testing but I'll soon publish a PR for it
Maxime Dzierwa
09/18/2024, 12:56 PM
As of now everything is in common code but the webview relying on except/actual