mod common;
use anyhow::Result;
use tracing::info;
use rogue_runtime::prelude::*;
#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt()
.with_env_filter("agent=info,runtime=trace")
.pretty()
.init();
info!("starting agent example");
let runtime = Runtime::create("agent".to_string()).await?;
info!("connecting to server at ws://localhost:8080");
let handle = runtime.connect("ws://localhost:8080".to_string()).await?;
info!("connected to server");
handle.await?;
Ok(())
}