:satellite: BroadcastChannel to send data between different browser-tabs or nodejs-processes :satellite: + LeaderElection over the channels https://pubkey.github.io/broadcast-channel/
LeaderElector.hasLeader
is now a function that returns a Promise<boolean>
.See all changes in the CHANGELOG
postMessage
to a closed channel.Bugfixes:
addEventListener()
where missing because of inaccurate JavaScript timing.Changes:
responseTime
to use to make it less likely to elect duplicate leaders.