close

fun close()(source)

The RTCDataChannel.close() method closes the RTCDataChannel.

MDN Reference