The default entrypoint will handle a very rudimentary CLI to open workspaces by doing app path/to/workspace. To override this behavior, you can extend and rebind the
ElectronMainApplication class and overriding the launch method.
A JSON-RPC communication between the Electron Main Process and the Renderer Processes is available: You can bind services using the ElectronConnectionHandler and
ElectronIpcConnectionProvider APIs, example:
From an electron-main module:
bind(ElectronConnectionHandler).toDynamicValue(context =>
new RpcConnectionHandler(electronMainWindowServicePath,
() => context.container.get(ElectronMainWindowService))
).inSingletonScope();
The default entrypoint will handle a very rudimentary CLI to open workspaces by doing
app path/to/workspace. To override this behavior, you can extend and rebind theElectronMainApplicationclass and overriding thelaunchmethod. A JSON-RPC communication between the Electron Main Process and the Renderer Processes is available: You can bind services using theElectronConnectionHandlerandElectronIpcConnectionProviderAPIs, example:From an
electron-mainmodule:And from the
electron-browsermodule: