 = data.message;
          return;
        }
        
        // Update packet list
        const packet = data.packet;
        const li = document.createElement("li");
        li.textContent = `Packet ${packet.id}: ${packet.src_ip} â†’ ${packet.dst_ip}, Protocol: ${packet.protocol} (${packet.hostname})`;
        const packetList = document.getElementById("packetList");
        packetList.prepend(li);
        
        // Keep only the last 20 entries
        if (packetList.children.length > 20) {
     