# Interface: RelayLink

Defined in: [packages/core/src/network/relays.ts:29](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L29)

A socket to one relay, kept open, publishing and watching topics that are not kept

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-connect"></a> `connect` | `readonly` | () => `Promise`\<`void`\> | - | [packages/core/src/network/relays.ts:31](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L31) |
| <a id="property-disconnect"></a> `disconnect` | `readonly` | () => `void` | - | [packages/core/src/network/relays.ts:32](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L32) |
| <a id="property-isconnected"></a> `isConnected` | `readonly` | () => `boolean` | - | [packages/core/src/network/relays.ts:42](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L42) |
| <a id="property-off"></a> `off` | `readonly` | \<`K`\>(`event`, `callback`) => `void` | - | [packages/core/src/network/relays.ts:45](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L45) |
| <a id="property-on"></a> `on` | `readonly` | \<`K`\>(`event`, `callback`) => `void` | - | [packages/core/src/network/relays.ts:44](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L44) |
| <a id="property-publish"></a> `publish` | `readonly` | (`topic`, `blob`) => `void` | Hands a blob to whoever watches the topic now; nobody keeps it | [packages/core/src/network/relays.ts:39](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L39) |
| <a id="property-reconnect"></a> `reconnect` | `readonly` | () => `void` | Tries again now, if waiting to | [packages/core/src/network/relays.ts:34](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L34) |
| <a id="property-requestice"></a> `requestIce?` | `readonly` | () => `void` | Asks for fresh TURN passwords, which arrive as an `ice` event; only on a kind that `can.ice` | [packages/core/src/network/relays.ts:41](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L41) |
| <a id="property-status"></a> `status` | `readonly` | () => [`RelayStatus`](https://minca.dev/api/core/interfaces/RelayStatus.md) | - | [packages/core/src/network/relays.ts:43](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L43) |
| <a id="property-unwatch"></a> `unwatch` | `readonly` | (`topic`) => `void` | - | [packages/core/src/network/relays.ts:37](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L37) |
| <a id="property-url"></a> `url` | `readonly` | `string` | - | [packages/core/src/network/relays.ts:30](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L30) |
| <a id="property-watch"></a> `watch` | `readonly` | (`topic`) => `void` | Hears what is published under a topic, now and after every reconnect | [packages/core/src/network/relays.ts:36](https://github.com/leifriksheim/minca/blob/main/core/src/network/relays.ts#L36) |
