implement zero hop repeater ping

This commit is contained in:
liamcottle 2025-03-10 02:40:31 +13:00
parent 78d34c10cd
commit d1bf08fec4
2 changed files with 92 additions and 0 deletions

View file

@ -138,6 +138,7 @@
<div v-if="contact.type === 1" @click="sendMessage(contact)" class="hover:underline cursor-pointer">Message</div>
<div v-if="contact.type === 2" @click="showCommandLine(contact)" class="hover:underline cursor-pointer">CLI</div>
<div v-if="contact.type === 2" @click="statusRequest(contact)" class="hover:underline cursor-pointer">GetStats</div>
<div v-if="contact.type === 2" @click="pingRepeater(contact)" class="hover:underline cursor-pointer">Ping</div>
<div @click="setPath(contact)" class="hover:underline cursor-pointer">Set Path</div>
<div @click="shareContact(contact)" class="hover:underline cursor-pointer">Share (Zero Hop)</div>
<div @click="exportContact(contact)" class="hover:underline cursor-pointer">Export</div>
@ -501,6 +502,14 @@
}
},
async pingRepeater(contact) {
try {
const response = await this.connection.pingRepeaterZeroHop(contact.publicKey);
console.log(response);
} catch(e) {
console.log(e);
}
},
async reboot() {
try {
await this.connection.reboot();