Skip to main content

resolve

Function resolve 

Source
pub async fn resolve(
    session: &mut Session,
    id: &KeyPair,
    realm: [u8; 32],
    procedure: &str,
) -> Result<Resolved, ResolveError>
Expand description

Finds procedure’s currently-advertised serving station and its dialable host/port, retrying past DHT propagation lag. realm and procedure must match exactly what the provider passed to advertise_direct (or the Erlang equivalent) — the discovery URI they derive must agree. session is used only to query the DHT; it does not need to be connected to the same station that will end up serving the call.