*Add ready method

This commit is contained in:
Derrick Hammer 2023-04-03 19:02:13 -04:00
parent 3ba792cd35
commit 4dd54a4f8b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,7 @@ BigInt.prototype.toJSON = function () {
}; };
addHandler("presentSeed", handlePresentSeed); addHandler("presentSeed", handlePresentSeed);
addHandler("ready", handleReady);
addHandler("stat", handleStat); addHandler("stat", handleStat);
addHandler("ls", handleLs, { receiveUpdates: true }); addHandler("ls", handleLs, { receiveUpdates: true });
addHandler("cat", handleCat, { receiveUpdates: true }); addHandler("cat", handleCat, { receiveUpdates: true });
@ -220,6 +221,12 @@ async function handlePresentSeed() {
moduleDefer.resolve(); moduleDefer.resolve();
} }
async function handleReady(aq: ActiveQuery) {
await ready();
aq.respond();
}
async function handleStat(aq: ActiveQuery) { async function handleStat(aq: ActiveQuery) {
await ready(); await ready();