SingleChannelConnection
A bidirectional channel that can host one service in each direction (1 host and 1 client).
Inheritors
Functions
Link copied to clipboard
inline suspend fun <T : RpcService, R : RpcService, S> SingleChannelConnection<S>.connect(crossinline host: suspend (R) -> T)
Connects both default channels for a connection (incoming and outgoing).
suspend fun <T> SingleChannelConnection<T>.connect(host: suspend (SerializedService<T>) -> SerializedService<T>)
Raw version of connect, performing the same functionality with SerializedService directly.
Link copied to clipboard
Get a SerializedService that is the default on this client
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.