Skip to content

Commit

Permalink
send text (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Jun 10, 2021
1 parent 67e7c3d commit 9a02c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async fn background_task(
tokio::spawn(async move {
while let Some(response) = rx.next().await {
log::debug!("send: {}", response);
let _ = sender.send_binary_mut(response.into_bytes()).await;
let _ = sender.send_text(response).await;
let _ = sender.flush().await;
}
});
Expand Down

0 comments on commit 9a02c10

Please sign in to comment.