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