close

fun close()(source)

The RTCDataChannel.close() method closes the closure of the channel.

MDN Reference