PubSub in the browser, across tabs & windows. Just 0.5kb
// Create a new PubSub channel.
let Channel = new PubSub('my_channel');
// Easily subscribe, data provided via callback.
Channel.subscribe((data) => {
console.log(data);
});
// Publish a new message to channel.
Channel.publish({message: 'Hello world!'});