Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/client-bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

use std::env;

use futures::StreamExt;

use async_std::io;
use async_std::task;
use async_tungstenite::async_std::connect_async;
Expand Down
2 changes: 1 addition & 1 deletion examples/interval-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn accept_connection(peer: SocketAddr, stream: TcpStream) {
async fn handle_connection(peer: SocketAddr, stream: TcpStream) -> Result<()> {
let ws_stream = accept_async(stream).await.expect("Failed to accept");
info!("New WebSocket connection: {}", peer);
let (mut ws_sender, mut ws_receiver) = ws_stream.split();
let (ws_sender, mut ws_receiver) = ws_stream.split();
let mut interval = async_std::stream::interval(Duration::from_millis(1000));

// Echo incoming WebSocket messages and send a message periodically every second.
Expand Down
2 changes: 0 additions & 2 deletions examples/tokio-client-bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

use std::env;

use futures::StreamExt;

use async_tungstenite::tokio::connect_async;
use async_tungstenite::{ByteReader, ByteWriter};
use tokio::io;
Expand Down
Loading