UNPKG

rinvoke

Version:

RPC library based on net sockets, can work both with tcp sockets and ipc

12 lines (8 loc) 182 B
'use strict' function sayHello (rinvoke, opts, next) { rinvoke.register('hello', (req, reply) => { reply(null, { hello: 'world' }) }) next() } module.exports = sayHello