tabs-broadcast Live demo Emit events
Messages between your tabs
Open this page in two or three tabs. The primary tab emits events and every tab counts them. Close or reload the primary tab and another one takes over.
Connecting…
Only the primary tab can emit (emitByPrimaryOnly is on by default). Secondary tabs receive and count.
Counter
0
Simple event and payload
Layer 1
0
Listens in APP_LAYER_0
Layer 2
0
Listens in APP_LAYER_1
Install it with npm install tabs-broadcast. The library page has the quick start, and the source is on GitHub.