use libwisp::{WispContext, WispSetServer, WispSwitchServer, WispClose};
use tokio;
#[tokio::main]
async fn main() {
let mut ctx = WispContext::new();
WispSetServer(&mut ctx, "wss://wispserver.dev/wisp/").await;
println!("connected to first server (wss://wispserver.dev/wisp/)");
WispSwitchServer(&mut ctx, "wss://wispserver.dev/adblocking/").await;
println!("switched to second server (wss://wispserver.dev/adblocking/)");
WispClose(&mut ctx).await;
}