HTML5 BroadcastChannel API is a great solution to sending data between tabs/windows.
They are opened with new BroadcastChannel(name)
and closed by calling the .close()
function.
However, it provides no explanation on how to view existing opened BroadcastChannels. If I'm creating BroadcastChannels dynamically (not with a fixed channel name), viewing the BroadcastChannels currently opened is highly useful.
A search on Google ("view existing broadcast channels javascript") and viewing the top three results (1, 2, 3) all provide no pointers as to how to view all opened broadcast channels.
I've tried viewing the BroadcastChannel
interface but it does not provide any .listOpenedChannels()
function or anything of the sort.
How do I view existing opened BroadcastChannels?