Send your messages from one frame to the other using a simple API which give you ack/nack support.
Much thanks to Mike Kruger for letting me open source this portion of code created while building https://www.nsyrt.com/
- trigger (type, content = '', callback)
- broadcast (type, content = '', callback)
- sendToParent (type, content = '', callback = function () {})
- sendToChildren (type, content = '', callback = function () {})
- sendToWindow (type, content = '', targetWindow, callback = function () {})
- once (type, callback)
- on (type, callback)