diff --git a/echo_server/src/main.rs b/echo_server/src/main.rs index cf082df..88a0861 100644 --- a/echo_server/src/main.rs +++ b/echo_server/src/main.rs @@ -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.");