Socket
Socket
Sign inDemoInstall

jpc-electron-ipc

Package Overview
Dependencies
92
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jpc-electron-ipc

Allows remote procedure calls between JS objects over Electron's IPC mechanism


Version published
Weekly downloads
3
Maintainers
1
Install size
186 MB
Created
Weekly downloads
 

Readme

Source

jpc-electron-ipc - Remote procedure calls between JS objects over the Electron IPC mechanism

jpc allows you to call JS objects in other processes. From your JS objects, it automatically creates an API that resembles your object API, just with an await in front of every call. It then transmits the call over the channel and call the objects in the remote process, and returns the result back to you.

See the jpc API

This uses the Electron IPC mechanism between the Electron main process and renderer process, using asynchronous communication.

Electron main process

import { JPCMainProcess } from "jpc-electron-ipc";

let jpc = new JPCMainProcess(myApp);
await jpc.init();

Electron renderer process

import { JPCRendererProcess } from "jpc-electron-ipc";

let jpc = new JPCRendererProcess();
await jpc.init();
let myApp = await jpc.getRemoteStartObject();

Keywords

FAQs

Last updated on 23 Mar 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc