forked from Kuska-ssb/solar
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
689b6ed
commit 4d4cb70
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use anyhow::Result; | ||
use solar_client::{Client, SolarClient}; | ||
|
||
const SERVER_ADDR: &str = "http://127.0.0.1:3030"; | ||
const CHANNEL: &str = "myco"; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<()> { | ||
let client = Client::new(SERVER_ADDR.to_owned())?; | ||
|
||
let subscribers = client.subscribers(CHANNEL).await?; | ||
println!("{:#?}", subscribers); | ||
// [ | ||
// "@HEqy940T6uB+T+d9Jaa58aNfRzLx9eRWqkZljBmnkmk=.ed25519", | ||
// ] | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters