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
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The maximum ServiceTier this host supports. Defaults to ServiceTier.BIDI (full capability). Implementations with limited transport capabilities should override this to a lower tier.
Link copied to clipboard
A human-readable name for this transport, used in error messages when a service exceeds the supportedTier.
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