...
This enables Unity to be used in other platforms, and also there is messaging support through the usage of postMessage
method (https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage). In order to use it, please check it here: Messaging API.
Below, you can find a simple example of its implementation.
Implementation example
As you embed Unity inside another external application:
...