rpc-client

1.0.1 • Public • Published

rpc-client

JSON RPC client for node.js with ssl support

installation

npm install rpc-client

usage

Include library

Client = require("rpc-client");

Create client object

client = new Client({host:"localhost",port:"8080", protocol:"https"});

Optionally set authentication

client.setBasicAuth("john", "correcthorsebatterystaple");

Execute remote methods

client.call("multiply", [1,2,4], function(err, result){})

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i rpc-client

    Weekly Downloads

    0

    Version

    1.0.1

    License

    none

    Last publish

    Collaborators

    • devktor