Configuring IFrame communication
The Zowe Application Framework provides the following shared resource functions through a ZoweZLUX object:
logger.ts and is capable of the same functions, including access to the
ComponentLogger classes. The
Logger class determines the behavior of all the
ComponentLoggers created from it.
ComponentLoggers are what the user implements to perform logging.
Iframe-adapter.js is designed to mimic the ZoweZLUX object that is available to apps within the virtual-desktop, and serves as the middle-man for communication between IFrame apps and the Zowe desktop.
You can see an implementation of this functionality in the sample IFrame app.
The version of ZoweZLUX adapted for IFrame apps is not complete and only implements the functions needed to allow the Sample IFrame App to function. The
viewportEvents are fully implemented. The
uriBroker are only partially implemented. The
registry is not implemented.
Unlike REACT and Angular apps, in IFrame apps the ZoweZLUX and initialization objects communicate with Zowe using the browser's onmessage and postmessage APIs. That means that communication operations are asynchronous, and you must account for this in your app, for example by using Promise objects and