Skip to content

MadLittleMods/fork-matrix-hyper-federation-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Hyper Federation Client

A hyper client for handling internal Synapse routing of outbound federation traffic.

  • matrix-federation://: Used in Synapse >= 1.87.0rc1 (2023-06-27)
  • matrix://: Used in Synapse < 1.87.0rc1 (2023-06-27)

Example

use ed25519_dalek::SigningKey;
use matrix_hyper_federation_client::SigningFederationClient;

async fn run(secret_key: SigningKey) -> Result<(), anyhow::Error> {
    let client = SigningFederationClient::new("local_server", "ed25519:sg5Sa", secret_key)?;

    let resp = client.get("matrix-federation://matrix.org/_matrix/federation/v1/version".parse()?).await?;
    // let resp = client.get("matrix://matrix.org/_matrix/federation/v1/version".parse()?).await?;

    assert_eq!(resp.status(), 200);

    Ok(())
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%