feat: add name api
This commit is contained in:
parent
8c9ae3f97a
commit
e6122110c5
|
@ -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");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue