   const duration = document.getElementById('captureTime').value;
      if (ws && ws.readyState === WebSocket.OPEN) {
        ws.send(JSON.stringify({
          action: 'start_capture',
          duration: parseInt(duration)
        }));
        document.getElementById('captureStatus').textContent = 'Starting packet capture...';
      }
    });
    
    // Initialize WebSocket connection
    connectWebSocket();
  </script>
</body>
</html>