Broadcast Channel Browser Support

(Marc Castles) #1

I’m wanting to use BroadcastChannel for a project I’m working on and the MDN page for Broadcast Channel says its only available in Chrome and Firefox. It does say however up the top that the feature is available in Web Workers which most browsers support.

Is that a documentation error or am I missing something?

(Chris Mills) #2

No, it’s not an error. It means that the feature is available both under the main thread (i.e. under Window) and inside a spawned worker thread too. But, only in Chrome/Firefox. For something to be available inside worker threads, it has to be implemented inside the browser in the first place.

(Marc Castles) #3

Ok, I think I understand. Thanks for the reply