KrpcTestServer

Implementation of KrpcServer that can be used to test custom KrpcTransport.

NOTE: one KrpcTransport is meant to be used by only one server, but this class allows for abuse. Be cautious about how you handle KrpcTransport with this class.

Constructors

Link copied to clipboard
constructor(config: KrpcConfig.Server, transport: KrpcTransport)

Functions

Link copied to clipboard
suspend fun awaitCompletion()
Link copied to clipboard
fun close(message: String?)
Link copied to clipboard
open override fun <Service : Any> deregisterService(serviceKClass: KClass<Service>)
Link copied to clipboard
override fun <Service : Any> registerService(serviceKClass: KClass<Service>, serviceFactory: () -> Service)