ipc-electron-dispatcher

0.1.2 • Public • Published

IPC Electron Dispatcher

This is just the flux wrapped with a small amount of code to allow it to speak to both the renderer process as well as the main process.

Build Status

Install

npm i ipc-electron-dispatcher -S

Usage

You still need to make your own instance of the dispatcher

// dispatcher.js
const IPCDispatcher = require('ipc-electron-dispatcher')
const dispatcher = new IPCDispatcher()
 
module.exports = dispatcher

Now you may require/register/dispatch from either the main process or the renderer process and the action should propagate to both processes

Currently this only supports on window applications and will only speak to window after they have attempted to speak to the dispatcher first

Since the dispatchers are in different processes they will have different data sets for registered callbacks

Patches welcome ^^ 😄

Contributing

Right now the only two things are src files are the main source file and get compiled into the lib dir using npm run build. And we use standardjs, so by running npm test you can test if you code is compliant.

Readme

Keywords

none

Package Sidebar

Install

npm i ipc-electron-dispatcher

Weekly Downloads

1

Version

0.1.2

License

ISC

Last publish

Collaborators

  • ~jcblw