> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# constructor

> Constructs a new instance of the TCPServer class

import { PageLink } from '/snippets/tsdocs/PageLink.jsx';
import { RefLink } from '/snippets/tsdocs/RefLink.jsx';

# constructor

## Summary

Constructs a new instance of the `TCPServer` class

## Signature

```typescript theme={null}
constructor(_port: number, _host: string, magicValue: string, _cert?: string | undefined, _key?: string | undefined);
```

## Parameters

### \_port

* **Type**:`number`

### \_host

* **Type**:`string`

### magicValue

* **Type**:`string`

### \_cert

* **Type**:`string | undefined`
* **Optional**: Yes

### \_key

* **Type**:`string | undefined`
* **Optional**: Yes
