Merge pull request #87 from KevinWMatthews/readme_fix

Fix typo in README.md example
pull/88/head
Daniel Abramov 5 years ago committed by GitHub
commit f7e9cb097e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

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

Loading…
Cancel
Save