Minor fixup of websocket example logging text. (#910)

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