*Add ready method
This commit is contained in:
parent
3ba792cd35
commit
4dd54a4f8b
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue