Example #1
0
module.exports.server = (address) => {
	// create the rpc server
	let server = new xn.RpcServer()
	let rep = axon.socket('rep')
	rep.bind(address)
	
	rep.on('message', (message, reply) => {
		server.dispatch(message, reply)
	})

	return server
}
Example #2
0
	rep.on('message', (message, reply) => {
		server.dispatch(message, reply)
	})