electron-direct-ipc - v2.2.3
    Preparing search index...

    Main process DirectIpc coordinator Manages the registry of renderer processes and facilitates MessagePort creation

    Index

    Constructors

    • Parameters

      • dependencies: Partial<
            {
                app: App;
                BrowserWindow: typeof BrowserWindow;
                ipcMain: IpcMain;
                log: DirectIpcLogger;
                webContents: typeof WebContents;
            },
        > = ...

      Returns DirectIpcMain

    Methods

    • Get the identifier map (for testing/debugging)

      Returns Map<string, number>

    • Get all registered utility process identifiers

      Returns string[]

      Array of utility process identifiers

    • Register a utility process with DirectIpcMain

      Parameters

      • identifier: string

        Unique identifier for the utility process

      • proc: UtilityProcess

        Electron UtilityProcess instance

      Returns void

      If identifier already in use

      If process is null or already exited

    • Unregister a utility process (cleanup before manual termination)

      Parameters

      • identifier: string

        Identifier of utility process to unregister

      Returns boolean

      True if process was unregistered, false if not found

    • Parameters

      • options: Partial<
            Pick<
                {
                    app: App;
                    BrowserWindow: typeof BrowserWindow;
                    ipcMain: IpcMain;
                    log: DirectIpcLogger;
                    webContents: typeof WebContents;
                },
                "log",
            >,
        > = ...

      Returns DirectIpcMain

    • Get the singleton instance of DirectIpcMain

      Parameters

      • options: Partial<
            Pick<
                {
                    app: App;
                    BrowserWindow: typeof BrowserWindow;
                    ipcMain: IpcMain;
                    log: DirectIpcLogger;
                    webContents: typeof WebContents;
                },
                "log",
            >,
        > = ...

      Returns DirectIpcMain