startServer()

startServer()

Overview

The startServer() function starts the monitoring dashboard server, making it accessible via a web browser. Once called, it begins serving real-time system statistics (CPU, memory, ping) to clients.

Usage

monitoring.startServer();

Description

  • startServer() initializes the server on the specified port and starts sending system stats.

  • Once the server is running, you can access the dashboard at http://127.0.0.1:<port>/monitoring.

By default, the server runs on port 3000, but you can change it in the configuration options.

Last updated