diff --git a/src/index.ts b/src/index.ts index ee133d4..bdeded0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,6 +26,7 @@ let moduleLoaded: Promise = new Promise((resolve) => { addHandler("presentKey", handlePresentKey); addHandler("register", handleRegister); addHandler("status", handleStatus, { receiveUpdates: true }); +addHandler("name", handleName); addHandler("ready", handleReady); addHandler("query", handleQuery); @@ -235,3 +236,7 @@ async function handleStatus(aq: ActiveQuery) { sendUpdate(); } + +function handleName(aq: ActiveQuery) { + aq.respond("Handshake"); +}