@talentsoft-opensource/integration-com-layer
v5.3.4
Published
Communication layer between host and sandboxed iframe app
Downloads
63
Keywords
Readme
What this package is used for?
This package is used to handle the communication between the Host page and the widget using the postMessage api.
It supports sending promises over postMessage, routing, and pubsub.
Technical description
Messages are sent over promises. Each message is send with a topic and an id. When the message is sent by a componenent, its id is recorded. When the destination answers (with another postMessage call), the responses reference the message it replies to so that the initial componant can resolve the promise with the content of the response.