diff --git a/src/index.ts b/src/index.ts index 00d2b83..f507add 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"); +}