combineIpcs

A function to combine IPCs from different sources created using createIpcSlice function.


combineIpcs replaces the createInterprocess function!


Example

import { combineIpcs } from 'interprocess'

import { getPongIpcSlice } from './renderer'
import { getPingIpcSlice } from './main'

export const { ipcMain, ipcRenderer, exposeApiToGlobalWindow } =
  combineIpcs(
    getPongIpcSlice,
    getPingIpcSlice
  )