json-rpc-notification
v1.0.1
Published
JSON RPC 2.0 notification object constructor.
Downloads
8
Readme
JSON RPC 2.0 Notification
Constructor for JSON RPC 2.0 notification objects.
Also see related packages json-rpc-response, json-rpc-request, and json-rpc-error
Installation
npm install json-rpc-notification
Usage
new JsonRpcNotification(method[, params]);
Notification objects can be constructed with or without using the new
keyword.
Example
var JsonRpcNotification = require('json-rpc-notification');
// Notification with params
new JsonRpcNotification('update', [1, 2, 3]);
// Notification without params
new JsonRpcNotification('foobar');
Test
Run unit tests;
$ npm test