kotlinx.rpc 0.10.2 Help

Ktor Server

Similarly to Server, you can use gRPC with Ktor:

fun Application.module() { grpc(port = PORT) { services { registerService<MyService> { MyServiceImpl() } } } }

GrpcServer instance is created and bound to the Ktor Application lifetime. It can be accessed via application.attributes[GrpcServerKey].

Add the Ktor dependency to your project:

implementation("org.jetbrains.kotlinx:kotlinx-rpc-grpc-ktor-server:<version>")

Version to use:

Latest dev version

Last modified: 12 March 2026