send

fun send(data: String)(source)

Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.

MDN Reference


fun send(data: Blob)(source)
fun send(data: ArrayBufferView<*>)(source)