Miss any of our Open RFC calls?Watch the recordings here! »

pull-ipc

0.1.0 • Public • Published

pull-ipc

A pull-stream wrapper around electron's ipc channel.

Usage

pullIpc(channelName, ipc, [window], doneCb)

Main thread:

var ipc = require('ipc')
var pullIpc = require('pull-ipc')
 
// `window` is the BrowserWindow instance you want to communicate with
var ipcStream = pullIpc('pull-channel', ipc, window, function (err) {
  console.log('ipc-stream ended', err)
})
pull(ipcStream, someOtherStream, ipcStream)

UI thread:

var ipc = require('ipc')
var pullIpc = require('pull-ipc')
 
var ipcStream = pullIpc('pull-channel', ipc, function (err) {
  console.log('ipc-stream ended', err)
})
pull(ipcStream, someOtherStream, ipcStream)

Install

npm i pull-ipc

DownloadsWeekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar