0.16.2 • Published 6 years ago

bson-rpc v0.16.2

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
6 years ago

bson-rpc-nodejs

nodejs version of bson-rpc

see github: https://github.com/hmisty/bson-rpc-nodejs

Install

npm install bson-rpc --save

Examples

client.js

var bson_rpc = require('bson-rpc');

var proxy = new bson_rpc.client('127.0.0.1', 8181);
proxy.use_service(['add']);

proxy.connect();

proxy.add(1, 2).then((err, doc) => {
	console.log(doc);
});
	
proxy.add(3, 4).then((err, doc) => {
	console.log(doc);
	proxy.disconnect();
});

server.js

var bson_rpc = require('bson-rpc');

var server = new bson_rpc.server('127.0.0.1', 8181);

server['add'] = (a, b) => {
	return a + b;
};

server.start();

Other Languages

the python version is here: https://github.com/hmisty/bson-rpc

Author and Contributors

Author: Evan Liu (hmisty).

License

Copyright (c) 2017 Evan Liu (hmisty). Apache-2.0 License.

0.16.2

6 years ago

0.16.1

6 years ago

0.16.0

6 years ago

0.15.2

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.12.0

7 years ago

0.11.2

7 years ago

0.11.0

7 years ago

0.10.0

7 years ago

0.9.0

7 years ago

0.8.2

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago