use csgo_gsi2::{GSIConfigBuilder, GSIServer, Subscription}; #[tokio::main] async fn main() { let config = GSIConfigBuilder::new("csgo-gsi") .subscribe_multiple(Subscription::UNRESTRICTED) .build(); let mut server = GSIServer::new(config, 3000); server.add_listener(|update| println!("Got an update {:#?}", update)); server .run() .await .expect("server didn't start"); }