Cross-tab Sync with BroadcastChannel
The PAN bus mirrors a subset of topics to BroadcastChannel('pan') so every tab receives the same retained state.
Publish from one tab, observe instantly in another.
mirror:
settings.*
retained snapshots
multi-tab sync
Mirrored Clock
Last message on
settings.clock is retained and replayed to new tabs.--:--:--
How it works
- The bus declares
mirror="settings.*", forwarding matching messages to the pan BroadcastChannel. - Each tab publishes
settings.clockevery second withretain: true. - New tabs subscribe and receive the retained value immediately, then stay in sync via mirror posts.