Fix typo in README.md example

pull/87/head
Kevin W Matthews 6 years ago
parent 0cf2a777df
commit 4cb27d08e4
  1. 2
      README.md

@ -11,7 +11,7 @@ use tungstenite::server::accept;
let server = TcpListener::bind("127.0.0.1:9001").unwrap(); let server = TcpListener::bind("127.0.0.1:9001").unwrap();
for stream in server.incoming() { for stream in server.incoming() {
spawn (move || { spawn (move || {
let mut websocket = accept(stream.unwrap(), None).unwrap(); let mut websocket = accept(stream.unwrap()).unwrap();
loop { loop {
let msg = websocket.read_message().unwrap(); let msg = websocket.read_message().unwrap();

Loading…
Cancel
Save