Weave documentation
Weave Dht

Relay

Relay configuration is passed through DhtNodeBuilder::with_relay and optional relay-peer addresses.

Workflow and current contract

Relay configuration is passed through DhtNodeBuilder::with_relay and optional relay-peer addresses. The local RelayProtocol also exposes request, data, close, active-session, and expiry operations with its own limits.

Treat the libp2p relay transport and the local relay bookkeeping API as distinct layers. In the local request API the token argument is named _token; that method does not establish token verification or application authorization. A successful relay allocation or encrypted connection still needs the caller's application authorization policy.

Source reference

On this page