mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-06-07 18:56:50 +00:00
Added large I/O message support. (#95)
This commit is contained in:
@@ -13,9 +13,9 @@ fs.appendFileSync("exects.txt", "ts:" + hpargs.ts + "\n");
|
||||
|
||||
Object.keys(hpargs.usrfd).forEach(function (key, index) {
|
||||
let userfds = hpargs.usrfd[key];
|
||||
let userinput = fs.readFileSync(userfds[0], 'utf8');
|
||||
|
||||
if (userinput.length > 0) {
|
||||
if (userfds[0] != -1) {
|
||||
let userinput = fs.readFileSync(userfds[0], 'utf8');
|
||||
// Append user input to a state file.
|
||||
fs.appendFileSync("userinputs.txt", userinput + "\n");
|
||||
fs.writeSync(userfds[1], "Echoing: " + userinput);
|
||||
|
||||
Reference in New Issue
Block a user