A Lox workspace for the Lox bridge distribution system and all of its subprojects
Go to file
onyinyang ba7116aa16
Removing test function
2023-04-10 11:24:53 -04:00
src Removing test function 2023-04-10 11:24:53 -04:00
.gitignore Removing test function 2023-04-10 11:24:53 -04:00
Cargo.toml Removing test function 2023-04-10 11:24:53 -04:00
README.md Removing test function 2023-04-10 11:24:53 -04:00

README.md

rdsys backend API

Usage

use rdsys_backend::start_stream;
use tokio;

#[tokio::main]
async fn main() {
    let endpoint = String::from("http://127.0.0.1:7100/resource-stream");
    let name = String::from("https");
    let token = String::from("HttpsApiTokenPlaceholder");
    let types = vec![String::from("obfs2"), String::from("scramblesuit")];
    let rx = start_stream(endpoint, name, token, types).await.unwrap();
    for diff in rx {
        println!("Received diff: {:?}", diff);
    }
}