Skip to content

Commit

Permalink
Better echo server
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Oct 10, 2024
1 parent dcf5ea7 commit f396ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion echo_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ fn main() {
} else {
eprintln!("Responded.");
}
} else if msg.is_close() {
eprintln!("Connection closed.");
} else {
eprintln!("Message received not text or binary.");
eprintln!("Unknown message received: {msg:?}");
}
}
eprintln!("Client left.");
Expand Down

0 comments on commit f396ba0

Please sign in to comment.