UNPKG

remjson

Version:

JSON-RPC 1.0/2.0 compliant server and client

13 lines (10 loc) 300 B
var remjson = require(__dirname + '/../..'); var client = remjson.client.http({ host: 'localhost', port: 3000 }); // the third parameter is set to "null" to indicate a notification client.request('ping', [], null, function(err) { if(err) throw err; // request was received successfully });