OptionallocalLocal TCP port used for the relay connection.
OptionalnameA human-chosen name to advertise to other peers via an identify
message once connected (e.g. a target ID origins can select by). When
omitted the client stays anonymous.
OptionalretriesNumber of times to retry the connection when a transient error
(e.g. EADDRNOTAVAIL, ECONNREFUSED) is encountered. Defaults to 3.
Ignored when retryIndefinitely is set.
OptionalretryWhen true, keep retrying transient connection errors forever (with
backoff capped at ~5s). Useful for long-running clients/daemons that
should wait for the relay server to become reachable instead of
crashing. Defaults to false.
OptionaltimeoutTimeout, in milliseconds, applied to the connection attempt.
OptionaltlsConnect over TLS instead of plain TCP.
Options accepted by RelayClient.Connect.