create options.

interface CreateOptions {
    bridgeName?: string;
    fwA?: Forwarder;
    fwB?: Forwarder;
    fwOpts?: Forwarder.Options;
    relayAB?: Relay;
    relayBA?: Relay;
    routesAB?: readonly NameLike[];
    routesBA?: readonly NameLike[];
}

Properties

bridgeName?: string

Description for debugging purpose.

fwA?: Forwarder

Forwarder A.

Forwarder.create(.fwOpts)

Disposing the bridge closes auto-created Forwarder but not passed-in Forwarder.

fwB?: Forwarder

Forwarder B.

Forwarder.create(.fwOpts)

Disposing the bridge closes auto-created Forwarder but not passed-in Forwarder.

Options for creating Forwarder instances via Forwarder.create.

Ignored if both .fwA and .fwB are specified.

relayAB?: Relay

Relay options for packets from forwarder A to forwarder B.

instant delivery

relayBA?: Relay

Relay options for packets from forwarder B to forwarder A.

instant delivery

routesAB?: readonly NameLike[]

Routes from forwarder A to forwarder B.

["/"]

routesBA?: readonly NameLike[]

Routes from forwarder B to forwarder A.

["/"]