Skip to main content

parse_relay_endpoint

Function parse_relay_endpoint 

Source
pub fn parse_relay_endpoint(
    value: &str,
) -> Result<RelayEndpointPlan, SoftchatError>
Expand description

Validate one configured relay and split protocol from system transport data.

wss+noise and the released legacy wss#<key> spelling canonicalize to one configured URL. Android opens RelayEndpointPlan::network_url and gives the 32-byte pin to the SDK Noise handshake.

ยงErrors

Returns a stable relay-catalog error for insecure URLs, credentials, missing hosts, or malformed/missing Noise keys.