You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my core code in multiplatform kotlin and want to run it as web app. I was able to run it using pure nodejs or using ktor on jvm. I was thinking of making wrapper around node express so that I can use same code to define my routing and reduce code duplicity.
How would I proceed to do that?
Anyone already tried doing this?
I found ktor-server-core module, but it doesn't seem to be multiplatform, or I just couldn't make it work in multiplatform project (only when I used it as jvm-module dependency).
Edit: Seems like whole ktor-server-core code is in jvm directory so even though it's multiplatform module, code is jvm-only. Way to fix is to split this code into common and jvm pieces. This is just from brief look into code and not much knowledge of ktor.
The text was updated successfully, but these errors were encountered:
I have my core code in multiplatform kotlin and want to run it as web app. I was able to run it using pure nodejs or using ktor on jvm. I was thinking of making wrapper around node express so that I can use same code to define my routing and reduce code duplicity.
How would I proceed to do that?
Anyone already tried doing this?
I found
ktor-server-core
module, but it doesn't seem to be multiplatform, or I just couldn't make it work in multiplatform project (only when I used it as jvm-module dependency).Edit: Seems like whole
ktor-server-core
code is injvm
directory so even though it's multiplatform module, code is jvm-only. Way to fix is to split this code into common and jvm pieces. This is just from brief look into code and not much knowledge of ktor.The text was updated successfully, but these errors were encountered: