JSON RPC 2.0 Request
Constructor for JSON RPC 2.0 request objects.
Also see related packages json-rpc-response, json-rpc-notification, and json-rpc-error
Installation
npm install json-rpc-request
Usage
id method params;
Request objects can be constructed with or without using the new
keyword.
Example
var JsonRpcRequest = ; // Request with params1 'subtract' 42 23; // Request without params2 'ping';
Test
Run unit tests;
$ npm test