Kotlin / kotlinx-rpc

Add asynchronous RPC services to your multiplatform applications.
https://kotlin.github.io/kotlinx-rpc/
Apache License 2.0
512 stars 7 forks source link

Ktor transport (server/client) for more tragets #102

Open ShayOinif opened 2 weeks ago

ShayOinif commented 2 weeks ago

Hello, i know this lib is very new and things are still moving. But I like the concept very much, and I would love to use it in some of my projects. I have 2 main issues: 1) My server side is going to be on Linux and right now there isn't ktor server transport for this target. 2) As I see the impl and underlying protocol, I have to create a KRPC server for each client. I would love to simply supply the same instance for all clients. I understand that the main reason is ID'S not being unique between different client calls. Maybe uuid v7 which is time based can be used? Anyhow, I know that some work around could be to make my impl for the service an inner class of main service or singleton and make them very thin and simply redirect the calls to main/singleton service. But still, I don't like all this instantiation.

Thanks in advance and I am really looking forward to use this lib in my code!