mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-25 08:37:29 +01:00
Minor fixup of websocket example logging text. (#910)
This commit is contained in:
parent
4c936dbb52
commit
59007d6111
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ async fn handle_socket(mut socket: WebSocket) {
|
|||
if let Ok(msg) = msg {
|
||||
match msg {
|
||||
Message::Text(t) => {
|
||||
println!("client send str: {:?}", t);
|
||||
println!("client sent str: {:?}", t);
|
||||
}
|
||||
Message::Binary(_) => {
|
||||
println!("client send binary data");
|
||||
println!("client sent binary data");
|
||||
}
|
||||
Message::Ping(_) => {
|
||||
println!("socket ping");
|
||||
|
|
Loading…
Reference in a new issue