_ 2025-02-24 05:20:18 +00:00
parent 951defe859
commit 6db056e82c
1 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,8 @@ impl App {
let frame = frame_opt.context("Server closed cxn")?;
cx.waker().wake_by_ref();
let frame = frame.context("network framing decode")?;
let output = self.client
let output = self
.client
.handle_frame(frame.into())
.context("client.handle_frame")?;
println!("{output}");
@ -107,7 +108,9 @@ impl Client {
ToClientEvent::ChatLine { line } => format!("{name}: {line}"),
ToClientEvent::Connected => format!("New client ({id}) connected"),
ToClientEvent::Disconnected => format!("{name} ({id}) disconnected"),
ToClientEvent::NameChanged { old_name } => format!("\"{old_name}\" ({id}) changed their name to \"{name}\""),
ToClientEvent::NameChanged { old_name } => {
format!("\"{old_name}\" ({id}) changed their name to \"{name}\"")
}
})
}