UNPKG

rinvoke

Version:

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

10 lines (6 loc) 180 B
'use strict' const rinvoke = require('../server')() rinvoke.register('concat', (req, reply) => reply(null, req.a + req.b)) rinvoke.listen(3030, err => { if (err) throw err })