# Interface: RelayStatus

Defined in: [packages/core/src/network/relay-socket.ts:32](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L32)

One relay's connection, for showing and for deciding when to try again

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-failures"></a> `failures` | `readonly` | `number` | Attempts in a row that did not open | [packages/core/src/network/relay-socket.ts:41](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L41) |
| <a id="property-openedat"></a> `openedAt` | `readonly` | `number` \| `null` | When the socket last opened (ms), or null if it never has | [packages/core/src/network/relay-socket.ts:39](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L39) |
| <a id="property-problem"></a> `problem` | `readonly` | `string` \| `null` | Why the last socket closed or failed, in a sentence, or null | [packages/core/src/network/relay-socket.ts:45](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L45) |
| <a id="property-retryat"></a> `retryAt` | `readonly` | `number` \| `null` | When the next attempt is due (ms), while waiting | [packages/core/src/network/relay-socket.ts:43](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L43) |
| <a id="property-since"></a> `since` | `readonly` | `number` | When the state last changed (ms) | [packages/core/src/network/relay-socket.ts:37](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L37) |
| <a id="property-state"></a> `state` | `readonly` | [`RelayState`](https://minca.dev/api/core/type-aliases/RelayState.md) | - | [packages/core/src/network/relay-socket.ts:35](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L35) |
| <a id="property-topics"></a> `topics` | `readonly` | `number` | Topics this socket watches: one per room | [packages/core/src/network/relay-socket.ts:47](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L47) |
| <a id="property-url"></a> `url` | `readonly` | `string` | The relay as named, with its kind's scheme (`wss://…`, `nostr+wss://…`) | [packages/core/src/network/relay-socket.ts:34](https://github.com/leifriksheim/minca/blob/main/core/src/network/relay-socket.ts#L34) |
