0.3.0 • Published 6 years ago

http-jsonrpc v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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){
});

// or later connect
var client = new RPC();
client.call('method', [p1,p2,p3]).done(function(ret){}, function(err){});
client.connect('http://path/to/rpc', {q:"xxx"});

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

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

6 years ago

0.2.3

7 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.5

9 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago