Post Quecast - Post Message based Queued Broadcast.
It is callback powered lib for creating semi-distributed communication system between iframes and window instances. The distinct feature of the lib is ability to remember (queue) messages so that it doesn't matter when a communicator is instantiated it will get full message history.
Table of Contents
To install post-quecast:
npm install @wikia/post-quecast
The most basic usage is:
// top window that loads first;setupPostQuecast;
// anywhere, including iframes;;communicator.addListenerconsole.log;communicator.dispatch;
More detailed explanation can be found in API section.
More advanced examples on how to integrate PostQuecast with things like RxJs and be found in Addons Section.
setupPostQuecastneeds to be called before anything else.
setupPostQuecastneeds to be called on top level window.