# Interface: PeerTransport

Defined in: [packages/core/src/network/transport.ts:20](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L20)

## Extended by

- [`SignalledTransport`](https://minca.dev/api/core/interfaces/SignalledTransport.md)

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-binding"></a> `binding?` | `readonly` | (`peerId`) => \| \{ `local`: `string`; `remote`: `string`; \} \| `null` | The certificates of one open connection's two ends, for binding the peer handshake to it (`peer-auth.ts`). Absent where the connection has none. | [packages/core/src/network/transport.ts:37](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L37) |
| <a id="property-close"></a> `close` | `readonly` | (`peerId`) => `void` | - | [packages/core/src/network/transport.ts:28](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L28) |
| <a id="property-closeall"></a> `closeAll` | `readonly` | () => `void` | Closes every connection. Deliberate: a transport must not reconnect after it. | [packages/core/src/network/transport.ts:30](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L30) |
| <a id="property-connect"></a> `connect?` | `readonly` | () => `Promise`\<`void`\> | Starts dialling, for a transport that reaches out on its own. Called by the network manager's `connect()`. A signalled transport has nothing to start — its connections begin with an offer. | [packages/core/src/network/transport.ts:26](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L26) |
| <a id="property-off"></a> `off` | `readonly` | \<`K`\>(`event`, `callback`) => `void` | - | [packages/core/src/network/transport.ts:32](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L32) |
| <a id="property-on"></a> `on` | `readonly` | \<`K`\>(`event`, `callback`) => `void` | - | [packages/core/src/network/transport.ts:31](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L31) |
| <a id="property-send"></a> `send` | `readonly` | (`peerId`, `data`) => `void` | - | [packages/core/src/network/transport.ts:27](https://github.com/leifriksheim/minca/blob/main/core/src/network/transport.ts#L27) |
