Instantiate PromiseTron
Pass IpcMain or IpcRenderer
Pass the webContents object of your BrowserWindow if you're on main thread
Listen for {IpcRequest} from main thread if on a renderer thread Listen for {IpcRequest} from renderer thread if on a main thread
Callback which provides incoming {IpcRequest} and replyWith function
Send data to ipcMain if called from a renderer thread Send data to ipcRenderer if called from main thread
Promise of expected result
Generate a random unique identifier
Tells if your are running into a renderer process. If false, you are in main process
Generated using TypeDoc
PromiseTron is a promise based communication system which simplify data exchange between electron main and renderer processes
Thomas Champagne
MIT