SerializedChannel

A multi-channel interface for serialized communication, generally shouldn't need to interact directly with this, instead use either ChannelClient or ChannelHost to reference a SerializedService instead.

Inheritors

Properties

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

Functions

Link copied to clipboard
abstract suspend fun call(channelId: ChannelId, endpoint: String, data: CallData<T>): CallData<T>
Link copied to clipboard
abstract suspend fun close()
abstract suspend fun close(id: ChannelId)
Link copied to clipboard
abstract suspend fun onClose(onClose: suspend () -> Unit)

Add a callback to be invoked when SuspendCloseable.close is called.