diff --git a/README.md b/README.md index cf917c4..de832b7 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ Lightweight stream-based WebSocket implementation for [Rust](http://www.rust-lang.org). ```rust +use std::net::TcpListener; +use std::thread::spawn; +use tungstenite::server::accept; /// A WebSocket echo server let server = TcpListener::bind("127.0.0.1:9001").unwrap();