Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPCServer support for Kotlin Multiplatform #83

Open
whyoleg opened this issue May 27, 2024 · 1 comment
Open

RPCServer support for Kotlin Multiplatform #83

whyoleg opened this issue May 27, 2024 · 1 comment

Comments

@whyoleg
Copy link

whyoleg commented May 27, 2024

On current moment RPCServer is exposed in kotlinx-rpc-runtime for KMP, but it's not usable for KMP because there is no support for introspection of the methods on interfaces.
AFAIU kRPC implementation (KRPCServer) uses reflection to find fields and methods which can handle requests.
Would be nice to have this supported via compiler plugin, I believe I heard something about it in KotlinConf talk. Is there any timeline for this?

Use-case: RSocket supports making (and handling) requests both from client and server sides of connection. So f.e server can make some request to a client. And so for this RPCServer should be usable in KMP, on client side.
Of course, another use-case is to run the server on K/N.

@Mr3zee
Copy link
Collaborator

Mr3zee commented May 28, 2024

Yep, this is in the nearest plans, the only roadblock right now is that we need to finish migration to compiler plugins from KSP (currently in work). After that KMP server will be next to implement. I can not give you a timeline right now, we are currently in the planning phase. Once it's done - I will update have estimations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants