Skip to content

Instantly share code, notes, and snippets.

@hash-bang
Created September 20, 2016 20:56
Show Gist options
  • Save hash-bang/e32e57f905352f955c9eecab82a8f39e to your computer and use it in GitHub Desktop.
Save hash-bang/e32e57f905352f955c9eecab82a8f39e to your computer and use it in GitHub Desktop.
Simple Conkie JS example
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