---
title: "IO.SocketServer"
description: "IO socket server prototype."
canonical_url: "https://www.zeyos.com/zymba/ref/io/io-socketserver"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/io/io-socketserver.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# IO.SocketServer

## IO.SocketServer

```
object @IO.SocketServer(@IO.SocketStream) {
	construct(string $endpoint) {}
	accept(int $timeout): object {}
}
```

**IO socket server prototype.**

### Prototype

**[IO.SocketStream](#)**

## Methods


### `$this.construct()`


```code
$this.construct(string $endpoint): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| endpoint | `string`  |  | "" |




### `$this.accept()`


```code
$this.accept(int $timeout): @IO.SocketStream
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| timeout | `int`  |  | 60 |

##### Returns

| Type | Value |
| --- | ---  |
| `@IO.SocketStream` |  |
