You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Electron has a -e flag to eval code when stdio is supported on windows for example that is not the case there exist electron issues how ever the most cross platform compilant way is to expose a repl server via namedPipe which is possible in all Platforms more or less efficent but possible.
So we need to create a electron-repl as also a electron-named-pipe implementation we should not implement handle based RPC here while it looks promising it would only add overhead we need to wait for a real use case at present i think the repl pipe protocol is more well then the handle based protocol that is used inside chromium called devtools. It simply exists because we got no more direct way to interface with the rest of the components.
Usage example
main.js
//import('modules-repl').then((ReplModules)=>ReplModules.baseUrl.set('')) if you need to modify the baseUrl to get something working on your platform or in your case. else the defaults should near always work under default conditions.import('modules-repl').then((ReplModules)=>RepelModules.electron.main('nameOfthePipe'));
with stealify we should create a MainTask Component that uses the electron.main method or something diffrent maybe no time to think about that at present lets finish this PR first.
The text was updated successfully, but these errors were encountered:
PR: Electron Interop
Electron has a -e flag to eval code when stdio is supported on windows for example that is not the case there exist electron issues how ever the most cross platform compilant way is to expose a repl server via namedPipe which is possible in all Platforms more or less efficent but possible.
So we need to create a electron-repl as also a electron-named-pipe implementation we should not implement handle based RPC here while it looks promising it would only add overhead we need to wait for a real use case at present i think the repl pipe protocol is more well then the handle based protocol that is used inside chromium called devtools. It simply exists because we got no more direct way to interface with the rest of the components.
Usage example
main.js
with stealify we should create a MainTask Component that uses the electron.main method or something diffrent maybe no time to think about that at present lets finish this PR first.
The text was updated successfully, but these errors were encountered: