send

suspend fun WebSocketSession.send(content: String)

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)

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.