Hi everyone,
I'm currently working on a Kotlin Multiplatform SDK that uses Ktor as the network client to handle all network calls and authentication. This SDK is designed to be consumed by Android, iOS, and web applications.
The SDK includes several suspend functions to manage network calls, and I've successfully implemented and consumed it in both Android and iOS platforms. However, I'm facing an issue when trying to export this SDK for JavaScript. Specifically, I've encountered a problem where suspend methods cannot be exported for JavaScript.
Has anyone dealt with this issue before or have any suggestions on how to work around it? Any guidance or examples of how to handle suspend methods for Kotlin Multiplatform targeting JavaScript would be greatly appreciated.
Thanks in advance!