This makes it easy to run an electro app from the command line, even across multiple windows. This uses @substack's subarg to make it possible to group minimist arguments to specific windows....
This makes it easy to run an electro app from the command line, even across multiple windows. This uses @substack's
subarg to make it possible to group minimist arguments to specific windows. I was sitting on this feature for a while until @yosh for told me about subarg.
to run sbot with patchbay in separate windows, with the sbot instance hidden you can do this:
electron ./electro/index.js [ ./scuttlebot/bin.js --no-show -- server ] [ ./patchbay/index.js ]
that will start sbot and patchbay in two electron windows, sbot in a hidden window. (maybe this can be configured in a file or something?)
My idea is to distribute an electron with level and sodium built in, then that is one install, and am then thinking we need a way to update and reload the js on the go. then we are right about there to distribute both sbot and patchbay over ssb!
@matt wonders how to send IPC messages between processes with this approach.
@matt does ferment use IPC? I think we saw some evidence that IPC was slow (compared to localhost TCP) but it would be interesting to compare, especially since am planning to run sbot in a webworker... and that is gonna use
postMessage which I'm guessing is based on IPC?
the other question I have, is how to configure this, so it just runs, and also how to update that config so that we can update code easily.
Built with git-ssb-web