Skip to main content

request

Function request 

Source
pub async fn request(
    relay: &str,
    ca_cert: Option<&Path>,
    request: &AccountRequest,
) -> Result<AccountReply, AccountError>
Expand description

Sends request to the account service of the relay at relay (the relay’s URL, ws:// or wss://, with or without an endpoint path) and returns its reply.

§Errors

When the relay cannot be reached, or does not answer with a reply.