close

fun close()(source)

Closes the BroadcastChannel object, opening it up to garbage collection.

MDN Reference