#Transport stream with
3 messages · Page 1 of 1 (latest)
I'm looking at BufferArray's and SharedBufferArrays (https://stackoverflow.com/questions/71770369/use-sharearraybuffer-from-an-electron-app/74623813#74623813) but not sure the right approach...
Hmm... Looks like this should work - there's an example here. I'll rejigger my code: https://www.electronjs.org/docs/latest/tutorial/message-ports#communicating-directly-between-the-main-process-and-the-main-world-of-a-context-isolated-page
MessagePorts are a web feature that allow passing messages between different contexts. It's like window.postMessage, but on different channels. The goal of this document is to describe how Electron extends the Channel Messaging model, and to give some examples of how you might use MessagePorts in your app.