Skip to main content Link Search Menu Expand Document (external link)

Inter-process Communication

Jancy’s IPC interface is based off of Electron’s ipcMain module.

There is only one IPC interface and it can always be found at jancy.ipc.

Methods

ipc.sendTo(webContentId, channel, args)

  • webContentId (Integer)
  • channel (string)
  • args (Any)

Sends args on channel to webContentId.

ipc.handle(channel, listener)

Same as ipcMain.handle.

ipc.handleOnce(channel, listener)

Same as ipcMain.handleOnce.

ipc.off(channel, listener)

Same as ipc.removeListener.

ipc.on(channel, listener)

Same as ipcMain.on.

ipc.once(channel, listener)

Same as ipcMain.once.

ipc.removeAllListeners(channel)

Same as ipcMain.removeAllListeners.

ipc.removeHandler(channel)

Same as ipcMain.removeHandler.

ipc.removeListener(channel, listener)

Same as ipcMain.removeListener.