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