http-jsonrpc

JSON-RPC 2.0 over HTTP protocol

npm install http-jsonrpc
1 downloads in the last week
14 downloads in the last month

http-jsonrpc

http-jsonrpc is a library implementing JSON-RPC 2.0 over HTTP protocol.

Examples

var rpc = require('http-jsonrpc');

var client = rpc.connect('http://path/to/rpc', {q:"xxx"});

client
.call('method', [p1,p2,p3])
.done(function(ret){
}, function(err){
});

var server = rpc.server();
server.process(request);

var http = require('http');
http.createServer(function(req, res){
    server.process(req, res);
}).listen(8080);
npm loves you