WebTransport and/or Transferable Streams could be substituted or used as an optional connection and communication channel between native host and background script (ServiceWorker in Chrome's MV3 implementation) which will provide a means to stream data to and from the native host and background script and from background script to Window or Worker.
This thread is dedicated investigating specifying and implementing WebTransport and/or Transferable Streams for native Messaging.