1.0.1 • Published 9 years ago

json-rpc-notification v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

License

MIT