electron-pubsub
Pubsub for Electron.
You can use it in main or renderer process.
Usage
Initialization
npm install --save electron-pubsub
// in main process
const pubsub = require('electron-pubsub');
// in renderer process
const pubsub = require('electron').remote.require('electron-pubsub');
Subscribe
pubsub; pubsub;
Publish
// in any processpubsub;
Unsubscribe
// in any processpubsub;pubsub; pubsub;
Hierarchical addressing
pubsub;pubsub;pubsub; pubsub;
Use promises
pubsub ; pubsub;
TODO
- Support hierarchy of topics.