onmessage
Register a handler for incoming messages from the UI's <iframe>
window.
Signature
onmessage: MessageEventHandler | undefined
Remarks
The pluginMessage
argument contains the message passed by the call to postMessage
on the UI side.
The props
argument contains a origin
property contains the origin of the document that sent the message. It is an advanced feature, mainly used for implementing OAuth.