send

abstract suspend fun send(message: RealtimeMessage, vsn: RealtimeProtocolVersion)(source)

Send a message to the websocket.

Parameters

message

The message to send

vsn

Depending on the vsn, the message gets encoded differently


abstract suspend fun send(data: ByteArray)(source)

Sends a binary message to the websocket.