Register a one-shot request/response channel via ipcMain.handleOnce.
Scoped to the process, not a window: ipcMain is global, so the
first caller from any window consumes the handler and every later
invoke — including from other windows — rejects with "No handler
registered". Use handle for anything a multi-window app can call more
than once.
Register a one-shot request/response channel via
ipcMain.handleOnce.Scoped to the process, not a window:
ipcMainis global, so the first caller from any window consumes the handler and every laterinvoke— including from other windows — rejects with "No handler registered". Usehandlefor anything a multi-window app can call more than once.