ApiCoreInterfaces
Interface: NodeNetworkConfig
Defined in: packages/core/src/node/types.ts:44
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
createTransport? | readonly | (iceServers) => SignalledTransport | How WebRTC connections are made; a node in a worker passes remoteTransport | packages/core/src/node/types.ts:60 |
hosts? | readonly | readonly string[] | Hosts to look for the account registry at, so a new device with only the recovery code finds its spaces | packages/core/src/node/types.ts:56 |
iceServers? | readonly | readonly RTCIceServer[] | Replaces the default STUN servers. TURN servers relays offer are added to these. | packages/core/src/node/types.ts:58 |
nodes? | readonly | readonly string[] | Always-on nodes to hold a socket to, wss://host/peer#<DID> (spec 04 §5.2); the space id is appended. The fragment pins the node's key. ws:// only on this machine. | packages/core/src/node/types.ts:54 |
reach? | readonly | (address) => Promise<boolean> | Whether this node may connect to an address it found rather than was given: a host or node a record or an invite names, a relay a space or an invite names, a place a short link names, a host it asks to describe itself. Asked before each; relays, nodes and hosts here are taken as given. Default: anywhere. For a node a server runs for someone else, such as the MCP service's: what it reads is theirs to write, and must not make the server connect inside its own network. | packages/core/src/node/types.ts:72 |
relays? | readonly | readonly string[] | Where peers meet: Minca relays (wss://) and Nostr relays (nostr+wss://). Each space meets in the room named after its id. | packages/core/src/node/types.ts:49 |
transports? | readonly | (spaceId, sessionDid) => readonly PeerTransport[] | Extra transports per space, given this node's session DID: for a node serving sockets, or a test | packages/core/src/node/types.ts:62 |