0.1.7 • Published 5 years ago

mwrpc v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Method Working Remotely

Yet Another RPC Framework :D

Proposal

License npm npm

MWRNB MWRNB

Before use it.You must admit that MaWenRui is freaking awesome.

JavaScript Version

Install

npm i mwrpc

Client Side

const Mwr = require('mwrpc');

let calc = new Mwr.MwrClient({
    endpoint: 'calc'
});

calc.add(1,2).then(res=>{
    console.log(res);
});

Server Side

const Mwr = require("mwrpc");

let s = new Mwr.MwrServer({});
s.func({
    name: 'add', endpoint: 'calc', func: function (a, b) {
        return Number.parseInt(a) + Number.parseInt(b);
    }
});
s.run();
0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago