publish = (room, data) => {
  const c = getChannel(room);
  c.bc.postMessage(data);
  c.subs.forEach(sub => sub(data));
}
Publish data to all subscribers (including subscribers on this tab)

@function
@param {string} room
@param {any} data