ChannelHost
interface ChannelHost<T> : SerializedChannel<T> , SingleChannelHost<T> , KsrpcEnvironment.Element<T>
A SerializedChannel that can host sub-services.
This could be a bidirectional conduit like a Connection, or it could be a hosting only service such as http hosting.
Inheritors
Functions
Link copied to clipboard
Add a callback to be invoked when SuspendCloseable.close is called.
Link copied to clipboard
Register the primary service to be hosted on this communication channel.
Link copied to clipboard
Register a service to be hosted on the default channel.
Link copied to clipboard
Link copied to clipboard
suspend fun <T : RpcService, S> ChannelHost<S>.registerHost(service: T, obj: RpcObject<T>): ChannelId