SingleChannelHost

A wrapper around a communication pathway that can be turned into a primary SerializedService.

Inheritors

Properties

Link copied to clipboard
abstract val env: KsrpcEnvironment<T>

Functions

Link copied to clipboard
abstract suspend fun registerDefault(service: SerializedService<T>)

Register the primary service to be hosted on this communication channel.

Link copied to clipboard
inline suspend fun <T : RpcService, S> SingleChannelHost<S>.registerDefault(service: T)
suspend fun <T : RpcService, S> SingleChannelHost<S>.registerDefault(service: T, obj: RpcObject<T>)

Register a service to be hosted on the default channel.