From 4cb27d08e4f2beae051717a0ae56e32d10a76df9 Mon Sep 17 00:00:00 2001 From: Kevin W Matthews Date: Sun, 27 Oct 2019 09:59:50 -0700 Subject: [PATCH] Fix typo in README.md example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 388cdf1..f5a7ff9 100644 --- a/README.md +++ b/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();