Skip to main content

nostr_client_builder

Function nostr_client_builder 

Source
pub fn nostr_client_builder() -> ClientBuilder
Expand description

A ClientBuilder carrying Vector’s client-wide policy: NIP-42 auth plus the embedded-Tor SOCKS proxy.

Callers should start from this rather than ClientBuilder::new() so both come along automatically.

The proxy is a closure, not a fixed address: nostr resolves it per connection attempt, so it reads the current Tor state. That covers relays added later in the session, which previously needed the transport re-applied per add_relay.