MCPcopy Create free account
hub / github.com/Snipa22/nodejs-pool / rpc

Function rpc

lib/support.js:108–117  ·  view source on GitHub ↗
(host, port, method, params, callback)

Source from the content-addressed store, hash-verified

106}
107
108function rpc(host, port, method, params, callback) {
109
110 let data = {
111 id: "0",
112 jsonrpc: "2.0",
113 method: method,
114 params: params
115 };
116 return jsonRequest(host, port, data, callback);
117}
118function formatDate(date) {
119 // Date formatting for MySQL date time fields.
120 return moment(date).format('YYYY-MM-DD HH:mm:ss');

Callers 1

support.jsFile · 0.85

Calls 1

jsonRequestFunction · 0.85

Tested by

no test coverage detected