Declare a group of IPC channels under a shared prefix.
Returns an IpcModuleRegister — call it (or hand it to
createIpcContainer) to actually attach the channels to ipcMain.
Each channel is registered as ${prefix}:${key} (or just key when the
prefix is empty) and gets a matching teardown callback.
Registration is transactional: if options.ready throws, every channel
registered up to that point is removed before the error is rethrown.
Declare a group of IPC channels under a shared
prefix.Returns an IpcModuleRegister — call it (or hand it to createIpcContainer) to actually attach the channels to
ipcMain. Each channel is registered as${prefix}:${key}(or justkeywhen the prefix is empty) and gets a matching teardown callback.Registration is transactional: if
options.readythrows, every channel registered up to that point is removed before the error is rethrown.