Cross-Document Communication With The Broadcast Channel API In JavaScript
bennadel.com·14h
WebAssembly
Preview
Report Post

In my continued effort to catch up on recent(ish) additions to the "Widely Available" web platform baseline features, I wanted to play with the Broadcast Channel API. This API provides a publish and subscribe (PubSub) paradigm that allows messages to be posted across browser windows and tabs on the same domain and origin context (on the same device - it doesn’t share messages over the network).

Run this demo in my JavaScript Demos project on GitHub.

[View this code in my JavaScript Demos project on GitHub](https://github.com/bennadel/Ja…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help