Use methods included in the lightning-container NPM module in your JavaScript code to
send and receive messages to and from your custom Lightning component, and to interact with the
Salesforce REST API.
addMessageErrorHandler()
Mounts an error handling function, to be called when the messaging framework encounters an error.
addMessageHandler()
Mounts a message handling function, used to handle messages sent from the Lightning component to the framed JavaScript app.