minca
ApiCoreInterfaces

Interface: MeshConfig

Defined in: packages/core/src/network/mesh.ts:51

Properties

PropertyModifierTypeDescriptionDefined in
authTimeoutMs?readonlynumberHow long a peer has to prove itself in a room. Default 10 s.packages/core/src/network/mesh.ts:66
createTransport?readonly(iceServers) => SignalledTransportHow connections are made, given the ICE servers each should use. WebRTC on this thread by default; a node in a worker uses the page's (remoteTransport).packages/core/src/network/mesh.ts:64
didreadonlystring-packages/core/src/network/mesh.ts:52
iceServers?readonlyreadonly RTCIceServer[]-packages/core/src/network/mesh.ts:57
introductions?readonlybooleanLet connected peers introduce the peers they know, so a relay is needed only for the first. On by default.packages/core/src/network/mesh.ts:59
keyreadonlyCryptoKeyThe private half of the key did names: it signs what this node says in a roompackages/core/src/network/mesh.ts:54
relaysreadonlyreadonly string[]Relays of any kind, used all at once (rendezvous.ts)packages/core/src/network/mesh.ts:56

On this page