feat: add name api call
This commit is contained in:
parent
d739b0a286
commit
005a128a2c
|
@ -60,6 +60,7 @@ BigInt.prototype.toJSON = function () {
|
||||||
addHandler("presentKey", handlePresentKey);
|
addHandler("presentKey", handlePresentKey);
|
||||||
addHandler("register", handleRegister);
|
addHandler("register", handleRegister);
|
||||||
addHandler("status", handleStatus, { receiveUpdates: true });
|
addHandler("status", handleStatus, { receiveUpdates: true });
|
||||||
|
addHandler("name", handleName);
|
||||||
addHandler("ready", handleReady);
|
addHandler("ready", handleReady);
|
||||||
addHandler("stat", handleStat);
|
addHandler("stat", handleStat);
|
||||||
addHandler("ls", handleLs, { receiveUpdates: true });
|
addHandler("ls", handleLs, { receiveUpdates: true });
|
||||||
|
@ -351,3 +352,7 @@ async function handleStatus(aq: ActiveQuery) {
|
||||||
|
|
||||||
sendUpdate();
|
sendUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleName(aq: ActiveQuery) {
|
||||||
|
aq.respond("IPFS");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue