Electron transport
Purpose
Electron IPC transport as a RxJS Subject
.
Installation
npm install @erebos/transport-electron
Usage
import { createTransport } from '@erebos/transport-electron'
const transport = createTransport('optional-channel-name')
transport.subcribe({
next: message => {
console.log(message)
},
})
transport.next({ hello: 'transport' })
API
createTransport()
Arguments
channel?: ?string
, defaults torpc-message
Returns Rx.Subject<Object>