1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-03-28 17:27:23 +01:00

Minor fixup of websocket example logging text. ()

This commit is contained in:
Simon Sellar 2022-04-06 20:03:34 +09:30 committed by GitHub
parent 4c936dbb52
commit 59007d6111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");