From 33cad835928b97340e7107125023e0a619b5a401 Mon Sep 17 00:00:00 2001 From: Jonathan Lindsey Date: Wed, 28 Aug 2024 22:59:56 -0500 Subject: [PATCH] Add instructions to cd to the websockets/chat-tcp directory before running that example. --- websockets/chat-tcp/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/websockets/chat-tcp/README.md b/websockets/chat-tcp/README.md index 63d8051a..5d6dc011 100644 --- a/websockets/chat-tcp/README.md +++ b/websockets/chat-tcp/README.md @@ -18,7 +18,14 @@ Chat server listens for incoming tcp connections. Server can access several type - `some message` - just string, send message to all peers in same room - client has to send heartbeat `Ping` messages, if server does not receive a heartbeat message for 10 seconds connection gets dropped -To start server use command: `cargo run --bin websocket-tcp-server` +To start server run + +```sh +cd websockets/chat-tcp +cargo run --bin websocket-tcp-server` +``` + +If the current directory is not correct, the server will look for `index.html` in the wrong place. ## Client