send

abstract suspend fun send(command: Command)(source)

Sends a Command to the gateway, suspending until the message has been sent.

Parameters

command

The Command to send to the gateway.

Throws

when the gateway connection isn't open.