Created
September 20, 2016 20:56
-
-
Save hash-bang/e32e57f905352f955c9eecab82a8f39e to your computer and use it in GitHub Desktop.
Simple Conkie JS example
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
var electron = require('electron'); | |
electron.ipcRenderer | |
// Tell Conkie that we want CPU and memory info | |
.send('statsRegister', ['cpu', 'memory']) | |
// Recieve module statistics when Conkie provides them | |
.on('updateStats', function(e, data) { | |
// Update local data | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment