From cbe57d4c18a2bb906dff4b7a346ed6592922a682 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 27 Jan 2024 10:25:17 -0800 Subject: [PATCH] planning --- README.md | 6 ++++++ client/src/Main.cpp | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 07f332e..af5414c 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,9 @@ 1. run local server within network 2. run client on different computers within network + +# Brainstorm +Client should connect to websocket server. On connect, client receives a cache of most recent messages. + +On sending message, it is broadcasted to all connected clients, including sender. + diff --git a/client/src/Main.cpp b/client/src/Main.cpp index 9a04faf..7f5283a 100644 --- a/client/src/Main.cpp +++ b/client/src/Main.cpp @@ -3,15 +3,10 @@ int main() { - std::cout << "Hello World!" << std::endl; - - // ask for name of person std::cout << "Please enter your first name: "; char *name = new char[100]; std::cin >> name; - std::string welcome_message = "Welcome, " + std::string(name) + "!"; - std::cout << std::endl << BOLDGREEN << welcome_message << RESET << std::endl; return 0;