Add use statements to README.md example

These clarify what comes from `std` and what comes from `tungstenite`.
pull/19/head
Nelson Chen 7 years ago committed by GitHub
parent 090a7a6b2a
commit a307160e1a
  1. 3
      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();

Loading…
Cancel
Save