send

fun send(data: String)(source)

The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.

MDN Reference


fun send(data: Blob)(source)
fun send(data: ArrayBuffer)(source)