feat: add name api call

This commit is contained in:
Derrick Hammer 2023-07-28 23:19:43 -04:00
parent d739b0a286
commit 005a128a2c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,7 @@ BigInt.prototype.toJSON = function () {
addHandler("presentKey", handlePresentKey);
addHandler("register", handleRegister);
addHandler("status", handleStatus, { receiveUpdates: true });
addHandler("name", handleName);
addHandler("ready", handleReady);
addHandler("stat", handleStat);
addHandler("ls", handleLs, { receiveUpdates: true });
@ -351,3 +352,7 @@ async function handleStatus(aq: ActiveQuery) {
sendUpdate();
}
function handleName(aq: ActiveQuery) {
aq.respond("IPFS");
}