close

fun close()(source)

The close() method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.

MDN Reference