Spawning multiple Native messaging host from Safari Web Extensions

The Safari Web Extension can connect to the App extension via the the browser.runtime.sendNativeMessage and browser.runtime.connectNative APIs.

How many Native Messaging host processes can be created through the above APIs? Can new processes be spun up per browser.runtime.connectNative call just like in chrome? or is it always going to be one process ?

What other alternatives can we leverage
The native code from your extension will be run in a single process per browser.

That means one extension process for Safari, and one extension process for Safari Technology Preview if your extension is turned on both places.

Is there a reason you want more processes? Can you file feedback at https://feedbackassistant.apple.com to explain what you are trying to accomplish?

Thanks!
Spawning multiple Native messaging host from Safari Web Extensions
 
 
Q