I am new to your framework and I am creating a IntelliJ plugin which opens a Webview of a website that I created.
For that webview I am using your framework to be able to create a browser in a Tool Window with that website URL.
However I need to send a payload to that window so that the frontend shows the payload on the website accordingly.
The way I do it in VSCode plugin is by using the
- Code: Select all
webview.postMessage({ command, payload,});
I already saw the MessageRouterHandler and MessageRouterHandlerEx but I think this is not what I want (from what I understood this is to receive an event from the Javascript), I want it the other way around, I want to send the payload to the loaded frontend using an event.
I would like to know if you can help me with this.
Thank you!