kamote是Node.js下简单、快速的RPC。
例子:
var kamote = require('kamote');var server = new kamote.Server();server.add('plusOne', function(value) { console.log(value + 1);});server.listen(9456);var kamote = require('kamote');var client = new kamote.Client();client.plusOne(100, function(result) { console.log(result); // 101});client.reconnect(9456);
评论