send

suspend fun WebSocketSession.send(content: String): Unit

Enqueues a text frame for sending with the specified content.

May suspend if the outgoing queue is full, and throw an exception if the channel is already closed.

suspend fun WebSocketSession.send(content: ByteArray): Unit

Enqueues a final binary frame for sending with the specified content.

May suspend if the outgoing queue is full, and throw an exception if the channel is already closed.