use kumoko::server::Server; #[tokio::main] async fn main() -> Result<(), Box> { let mut server = Server::::bind("[::1]:50052").await?; loop{ let (req, origin) = server.get_request().await; let msg = format!("Hello {}! Happy to see you here!", req); server.emit_response(msg, origin.into()).await; } }