Created
October 8, 2020 15:59
-
-
Save adityapatnaik/06ce0c3b759db54f3db47dfa2e183049 to your computer and use it in GitHub Desktop.
Synchronous Reply: main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipcMain.on('anything-synchronous', (event, arg) => { | |
console.log("sync",arg) // prints "sync ping" | |
//reply | |
event.returnValue = 'pong' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment