Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

ipc-electron-dispatcher

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipc-electron-dispatcher

A flux dispatcher that talks through the process barrier for electron apps using ipc

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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 ^^ :smile:

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.

FAQs

Package last updated on 03 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts