ApiCoreInterfaces
Interface: PeerTransport
Defined in: packages/core/src/network/transport.ts:20
Extended by
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
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 |
close | readonly | (peerId) => void | - | packages/core/src/network/transport.ts:28 |
closeAll | readonly | () => void | Closes every connection. Deliberate: a transport must not reconnect after it. | packages/core/src/network/transport.ts:30 |
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 |
off | readonly | <K>(event, callback) => void | - | packages/core/src/network/transport.ts:32 |
on | readonly | <K>(event, callback) => void | - | packages/core/src/network/transport.ts:31 |
send | readonly | (peerId, data) => void | - | packages/core/src/network/transport.ts:27 |