feat: add name api

This commit is contained in:
Derrick Hammer 2023-07-28 23:30:08 -04:00
parent 8c9ae3f97a
commit e6122110c5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,7 @@ let moduleLoaded: Promise<void> = new Promise((resolve) => {
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("query", handleQuery); addHandler("query", handleQuery);
@ -235,3 +236,7 @@ async function handleStatus(aq: ActiveQuery) {
sendUpdate(); sendUpdate();
} }
function handleName(aq: ActiveQuery) {
aq.respond("Handshake");
}