rpc-bus

1.0.1 • Public • Published

rpc-bus

Event bus for Carlo's remote procedure call

install

npm install --save rpc-bus

usage

import { launch } from 'carlo';
import { rpc, rpc_process } from 'carlo/rpc';
 
const app = await launch(
    {
      bgcolor: '#eee',
      width: 1400,
      height: 840,
      userDataDir,
      title: 'title',
      args: process.env.DEV === 'true' ? ['--auto-open-devtools-for-tabs'] : []
    });
 
const bus = await rpc_process.spawn('node_modules/rpc-bus/dist/index.js');
 
await app.mainWindow().load('index.html', rpc.handle(app), bus);

Package Sidebar

Install

npm i rpc-bus

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.37 kB

Total Files

5

Last publish

Collaborators

  • vandeurenglenn