broadcast-channel

BroadcastChannel to send data between different browser-tabs or nodejs-processes + LeaderElection over the channels https://pubkey.github.io/broadcast-channel/

MIT License

Downloads
8.1M
Stars
1.8K
Committers
28

Bot releases are visible (Hide)

broadcast-channel - 5.3.0 Latest Release

Published by pubkey about 1 year ago

broadcast-channel - 5.1.0

Published by pubkey over 1 year ago

  • REFACTOR check for native method #1157
broadcast-channel - 5.0.2

Published by pubkey over 1 year ago

  • Fix abort signal reason
broadcast-channel - 5.0.1

Published by pubkey over 1 year ago

  • FIX hasLeader() is mixing up states
broadcast-channel - 5.0.0

Published by pubkey over 1 year ago

  • Use Web Locks API for leader election if possible.
  • LeaderElector.hasLeader is now a function that returns a Promise<boolean>.
broadcast-channel - 4.18.1

Published by pubkey almost 2 years ago

  • Updated dependencies

See all changes in the CHANGELOG

broadcast-channel - 4.18.0

Published by pubkey about 2 years ago

  • FIX fix(indexedDB): Can't start a transaction on a closed database #1042 nabigraphics
broadcast-channel - 4.10.0

Published by pubkey over 2 years ago

  • Improve error message when calling postMessage to a closed channel.
broadcast-channel - 4.9.0

Published by pubkey almost 3 years ago

Bugfixes:

  • When listening to messages directly, responses that where send directly after addEventListener() where missing because of inaccurate JavaScript timing.
broadcast-channel - 4.8.0

Published by pubkey almost 3 years ago

Changes:

  • Better determine the correct responseTime to use to make it less likely to elect duplicate leaders.
broadcast-channel - 4.7.1

Published by pubkey almost 3 years ago

Bugfixes:

  • Remove useless log at leader election fallback interval.
broadcast-channel - 4.7.0

Published by pubkey almost 3 years ago

Bugfixes:

  • Prevent EMFILE, too many open files error when writing many messages at once.
broadcast-channel - 4.6.0

Published by pubkey almost 3 years ago

Other:

  • Added broadcastChannel.id() for debugging

Bugfixes:

  • Refactor applyOnce() queue to ensure we do not run more often then needed.
broadcast-channel - 4.3.0

Published by pubkey almost 3 years ago

Features:

  • Added LeaderElector.hasLeader
  • Added LeaderElector.broadcastChannel
broadcast-channel - 4.2.0

Published by pubkey about 3 years ago

Bugfixes:

broadcast-channel - 3.7.0

Published by pubkey over 3 years ago

Other: