Interface CreateFaceOptions

Options to createFace as first parameter.

interface CreateFaceOptions {
    addRoutes?: readonly NameLike[];
    callback?: ((transport, l3face, fwFace) => void);
    fw?: Forwarder;
    l3?: L3Face.Attributes;
    lp?: LpService.Options;
}

Properties

addRoutes?: readonly NameLike[]

Routes to be added on the created face.

Default Value

["/"]

callback?: ((transport, l3face, fwFace) => void)

A callback to receive Transport, L3Face, and FwFace objects.

Type declaration

Remarks

This can be useful for reading counters or listening to events on these objects.

Forwarder instance to add the face to.

Default Value

Forwarder.getDefault()

L3Face attributes.

Remarks

.l3.advertiseFrom defaults to false in createFace function.

NDNLP service options.