Optional
H3Enable HTTP/3 transport.
This is only relevant in browser environment.
This should be set to H3Transport class instance. Having this option avoids always pulling in H3Transport code, to reduce browser bundle size in applications that do not use it.
Optional
addRoutes to be added on the created face.
["/"]
Optional
connectConnect timeout (in milliseconds).
Optional
fallbackFallback routers, used if FCH and default gateway are both unavailable.
Optional
fastestNumber of faces to keep; others are closed. Faces are ranked by shortest testConnection duration.
1
Optional
fchFCH request, or false
to disable FCH query.
{ count: 4 }
Optional
fwLogical forwarder to attach faces to.
Forwarder.getDefault()
Optional
mtuOverride MTU of datagram faces.
Optional
preferWhether to try HTTP/3 before all other options.
false
Ignored if H3Transport is not enabled or supported.
Optional
preferUse TCP instead of UDP.
This is only relevant in Node.js environment.
Optional
testTest face connection.
"/localhop/nfd/rib/list"
Optional
testInterestLifetime of connection test Interest packets.
2000
Used only if testConnection is a string or Name.
Optional
tryWhether to consider default IPv4 gateway as a candidate.
true
This option has no effect if IPv4 gateway cannot be determined, e.g. in browser.
Generated using TypeDoc
connectToNetwork options.