> For the complete documentation index, see [llms.txt](https://sheita.gitbook.io/sysmonitoring/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sheita.gitbook.io/sysmonitoring/functions/stopserver.md).

# stopServer()

## `stopServer()`

### Overview

The `stopServer()` function stops the monitoring dashboard server, halting the real-time statistics service. This function is useful when you need to shut down the server programmatically.

### Usage

```js
monitoring.stopServer();
```

### Description

* **`stopServer()`** gracefully stops the server and disconnects any active connections.
* Use this function to stop the server when it's no longer needed or to clean up resources.

After calling `stopServer()`, the dashboard will no longer be accessible at the configured URL.
