Replies: 4 comments 2 replies
-
Maybe related to: #22 |
Beta Was this translation helpful? Give feedback.
-
Looking at the server plugin model, the problem would be that there is no hot reload. And since you need to register the server code when initializing KTOR it would be in that JAR instead of in part of the codebase that could reload on changes. Would be nice to have a hook in the multi-platform project for |
Beta Was this translation helpful? Give feedback.
-
Easiest path looks like: (untested but in theory can't think of a blocker)
Hoping that the CORS setup of kobweb already handles what is needed there. |
Beta Was this translation helpful? Give feedback.
-
Note that we've done some initial experimentation with kotlin rpc, although it's too early to tell how we plan to support it (especially as the library is still in an experimental stage). Kobweb websocket support (aka API streams) is pretty robust AND live reload capable. The experimentation that we are doing currently layers on top of it, so this may be how we support it. We may also add an RPC endpoint to Kobweb servers, it's hard to say at this point. |
Beta Was this translation helpful? Give feedback.
-
With Kotlinx-Rpc and how it integrates with KTOR, and the custom KTOR server here, how will it be integrated in the future to allow it over the current server API routes?
Beta Was this translation helpful? Give feedback.
All reactions