Skip to content

API Interface LinkConfig

github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

Interface: LinkConfig

Defined in: src/engine/core/worlds.ts:86

A transport link between two Worlds (ADR 0033).

Properties

from

from: string;

Defined in: src/engine/core/worlds.ts:88

The client side: the World that connects.


options?

options?: Record<string, unknown>;

Defined in: src/engine/core/worlds.ts:101

Settings for the link and its transport: address (where the server listens; loopback makes one up per Engine and server World), port (WebSocket servers, Node only), url (where a WebSocket client connects), interpolationMs (the client's interpolation buffer, default 100), commandSlack (ticks a client's inputs run ahead, default 2), handshakeTimeoutMs (5000), idleTimeoutMs (15000), maxConnections (the server's cap, 64), and transport options such as loopback's latencyMs, jitterMs and loss.


to

to: string;

Defined in: src/engine/core/worlds.ts:90

The server side: the World that listens.


transport

transport: string;

Defined in: src/engine/core/worlds.ts:92

A registered transport name: "loopback", "websocket", …

Clone this wiki locally