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

Function sendReply

lib/pool.js:888–899  ·  view source on GitHub ↗
(error, result)

Source from the content-addressed store, hash-verified

886 }
887
888 let sendReply = function (error, result) {
889 if (!socket.writable) {
890 return;
891 }
892 let sendData = JSON.stringify({
893 id: jsonData.id,
894 jsonrpc: "2.0",
895 error: error ? {code: -1, message: error} : null,
896 result: result
897 }) + "\n";
898 socket.write(sendData);
899 };
900 handleMinerData(jsonData.method, jsonData.params, socket.remoteAddress, portData, sendReply, pushMessage);
901 };
902

Callers 1

handleMinerDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected