mirror of
https://github.com/pcvolkmer/arsnova-client.git
synced 2025-07-01 22:42:55 +00:00
feat: add method to request room statistics
This commit is contained in:
@ -78,7 +78,11 @@ async fn main() -> Result<(), ()> {
|
||||
let l1 = client.on_feedback_changed(&cli.room, FeedbackHandler::SenderReceiver(in_tx, out_rx));
|
||||
|
||||
let room_info = client.get_room_info(&cli.room).await.map_err(|_| ())?;
|
||||
let title = format!("Live Feedback: {} ({})", room_info.name, room_info.short_id);
|
||||
let room_stats = client.get_room_stats(&cli.room).await.map_err(|_| ())?;
|
||||
let title = format!(
|
||||
"Live Feedback: {} ({}) - 👥: {}",
|
||||
room_info.name, room_info.short_id, room_stats.room_user_count
|
||||
);
|
||||
|
||||
let l2 = create_ui(&mut terminal, &title, in_rx);
|
||||
|
||||
|
Reference in New Issue
Block a user