feat: add routing text messages

This commit is contained in:
2026-08-17 19:53:15 +02:00
parent 8ee7242726
commit 9b86e95701
4 changed files with 24 additions and 10 deletions

View File

@@ -124,8 +124,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Some(ClientData::AvailableMoves(move_paths)) => todo!(),
Some(ClientData::TextMessage(content)) => {
info!("Got message from the server: {}", content);
Some(ClientData::TextMessage {sender, content}) => {
info!("[{}] - {}", sender, content);
}
Some(ClientData::GameEnd(game_result)) => {