0.3.0 • Published 7 years ago

http-jsonrpc v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

0.2.3

8 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

12 years ago