cwb: Cross-Window Broadcasting
cwb (pronounced wub) is a JavaScript library for cross-window broadcasting and locking.
Installation
npm add cwb
Usage
Communicating between tabs
Subscribe to events
const chan = 'foo'chan
Publish events
/* In another tab */ const chan = 'foo'chan
Send to the same tab
chan
Locking (synchronization)
Changelog
1.0.0
Migrate to TypeScript
0.0.3
New method: Channel#dispose
0.0.2
New method: Channel#update
License
MIT
The ObjectId type (a vendored dependency) comes from bson, which is licensed under the Apache License 2.0