Added the traceroute and neighbours to the map

This commit is contained in:
Pablo Revilla
2025-08-28 09:12:54 -07:00
parent 7b8f2e6678
commit a022795251

View File

@@ -302,7 +302,7 @@ function blinkNode(marker, longName, portnum) {
function fetchNewPackets() {
if (!lastFetchTime) return;
fetch(`/api/packets?limit=5&since=${lastFetchTime}`)
fetch(`/api/packets?since=${lastFetchTime}`)
.then(res => res.json())
.then(data => {
if (!data.packets || data.packets.length === 0) return;
@@ -326,6 +326,7 @@ let packetInterval = null;
function startPacketFetcher() {
if (!packetInterval) {
fetchLatestPacket();
packetInterval = setInterval(fetchNewPackets, 1000);
console.log("Packet fetching started");
}