aragon / intertron

IPC for Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intertron

A way to expose functions to your Electron renderer process, to be used with Intertron Client

npm install intertron

const Intertron = require('intertron')

class DoSomething {
  static method(arg1, cb) {
    setTimeout(() => {
      cb(null, 'res')
    }, 100)
  }
}

new Intertron({ DoSomething })

And then the client will be able to call that method seamlessly as specified in Intertron Client

About

IPC for Electron

License:MIT License


Languages

Language:JavaScript 100.0%