tm-fork-ipcbus

0.0.4 • Public • Published

tm-fork-ipcbus

npm codecov

Node fork inter process communication bus. Allow communucation between parent and child processes in async request/response way.

Installation

npm install tm-fork-ipcbus

Test

  • npm test
  • npm run test: coverage Tests with a coverage report.

Available options

You can pass options with an options object to the constructor.

const IpcBus = require('tm-fork-ipcbus');

const ipc = new IpcBus(options);
  • requestTimeout Timeot in msecs for requests(default 5000 msecs).
  • process For parent process it should be a link to the child process. For child processes this option should be omitted.

Methods

  • request
  • response
  • event
  • task
  • message

Events.

Each bus instance is an event emitter with the following events:

  • request
  • response
  • event
  • task
  • message
  • invalidMessage

/tm-fork-ipcbus/

    Package Sidebar

    Install

    npm i tm-fork-ipcbus

    Weekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • romon2002