mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-07-30 18:40:31 +00:00
User input json/bson format improvements. (#174)
* Removed hex encoding in json input container. * Refactored client lib exports.
This commit is contained in:
@@ -15,14 +15,14 @@ const echoContract = async (ctx) => {
|
||||
// This user's pubkey can be accessed from 'user.pubKey'
|
||||
// A reply message can be sent to the user by 'user.send(msg)'
|
||||
|
||||
const msg = buf.toString("utf8");
|
||||
const msg = buf.toString();
|
||||
if (msg == "ts") {
|
||||
await user.send(fs.readFileSync("exects.txt"));
|
||||
}
|
||||
else {
|
||||
await user.send("Echoing: " + msg);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Get list of all users who are connected.
|
||||
// ctx.users.get();
|
||||
|
||||
Reference in New Issue
Block a user