feat: add name api

This commit is contained in:
Derrick Hammer 2023-07-28 23:23:42 -04:00
parent abecdfa925
commit 9370003a59
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@ let rpc: RpcNetwork;
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);
[ [
@ -212,3 +213,6 @@ async function handleStatus(aq: ActiveQuery) {
sendUpdate(); sendUpdate();
} }
function handleName(aq: ActiveQuery) {
aq.respond("Ethereum");
}