From 9370003a59d1dd0c343f6817c2940f7309703854 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 28 Jul 2023 23:23:42 -0400 Subject: [PATCH] feat: add name api --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 6458a65..601fd87 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,6 +32,7 @@ let rpc: RpcNetwork; addHandler("presentKey", handlePresentKey); addHandler("register", handleRegister); addHandler("status", handleStatus, { receiveUpdates: true }); +addHandler("name", handleName); addHandler("ready", handleReady); [ @@ -212,3 +213,6 @@ async function handleStatus(aq: ActiveQuery) { sendUpdate(); } +function handleName(aq: ActiveQuery) { + aq.respond("Ethereum"); +}