How to send data between the WebBrowserComponent and the local HTML it loads?

More functionality is planned for JUCE 8, see details in the top post: The 2023 JUCE User Survey

In the meantime, people are successfully using the header-only WebView wrapper in choc to accomplish this today: