orbit-server / orbit.server.net / ClientConnection

ClientConnection

class ClientConnection : MessageSender

Constructors

<init>

ClientConnection(authInfo: AuthInfo, incomingChannel: ReceiveChannel<MessageProto>, outgoingChannel: SendChannel<MessageProto>, pipeline: Pipeline)

Functions

close

fun close(cause: Throwable? = null, messageId: Long? = null): Unit

consumeMessages

suspend fun consumeMessages(): Unit

offerMessage

fun offerMessage(message: Message): Unit

sendMessage

suspend fun sendMessage(message: Message, route: Route?): Unit