IPC support in Webview tags when nodeIntegration is not set


We have a webview and want to communicate with it using IPC. However; we disable nodeIntegration for the webview due to security reasons since it will render user-generated applications.

The problem is that IPC support is not available if the nodeIntegration is not set since it requires electron.ipcRenderer.

We thought about using iframe but since webview is run on separate process, we prefer to use it. Do you have any suggestions to send messages to sandboxed webview and receive messages from it from the parent window?