Rafael Diaz
09/20/2025, 3:47 PMRafael Diaz
09/21/2025, 11:08 PMandylamax
09/22/2025, 1:56 PMneworldlt
09/22/2025, 5:52 PM2) would I able to use KRPC despite the backend being JVM and the frontend KMP?Yes, it is possible. I have working solution using separate KMP module where I put all shared declarations common sourceSet. I am not sure if it is recommended way, because I never find a documentation. I used
org.jetbrains.kotlinx:kotlinx-rpc-core dep, but despite it having all annotations, compiler plugin still requires client or server, so I put them both.
I am also curious, how RPC could work with HTTP?Alexander Sysoev
09/29/2025, 3:45 PM1) Are there any examples of using KRPC without Ktor, ideally via HTTP transport instead of web socket?Not officially
2) would I able to use KRPC despite the backend being JVM and the frontend KMP?Already answered above, but yes
Currently Android is not listed as a supported target.It is Jvm, so it is supported y definition, same as you can run any jvm-built library on android. Though I guess people are confused a lot, I'll update docs to state this explicitly
Alexander Sysoev
09/29/2025, 3:47 PMI am curious how the http transport is expected to behave, especially in scenarios where the erver will be streaming some responses
Does it establish a connection then send an SSE back to the client?@andylamax I would imagine: • Client streaming/Unary calls - just HTTP requests • Server streaming - SSE Would it work with current transport model? I don't know
Alexander Sysoev
09/29/2025, 3:48 PMI used@neworldlt hmmmmmm, can you give me an example of a compiler error?dep, but despite it having all annotations, compiler plugin still requires client or server, so I put them both.org.jetbrains.kotlinx:kotlinx-rpc-core
S.
09/29/2025, 4:03 PMS.
09/29/2025, 4:04 PMS.
09/29/2025, 4:09 PMAlexander Sysoev
09/29/2025, 4:11 PMbut it sounds like krpc's grpc implementation will use websockets as well, just with the grpc protocol?no, grpc uses platforms grpc runtime libraries. In other words - on jvm under the hood is io:grpc, on native libgrpc, etc. So it is http2
S.
09/29/2025, 4:11 PMAlexander Sysoev
09/29/2025, 4:11 PM(e.g. you don't even know when it closed)You do, there is session exposed
Alexander Sysoev
09/29/2025, 4:12 PMS.
09/29/2025, 4:13 PMAlexander Sysoev
09/29/2025, 4:15 PMS.
09/29/2025, 4:23 PMneworldlt
09/29/2025, 5:01 PMS.
09/29/2025, 5:07 PM