README:
For the users:
- Run the server code (server_chat_app.js) in the node and check whether the server is connected to the specified port or not.
- Run the client code (client1_chat_app.js) in the node and check whether the client is connected to the server or not.
- While running the client javascript file in the node, type an username after the .js with a space.
- Enjoy chatting with your friends with this new chat app!!!!
For the server.js
- Define the variable.
- Create the server by connecting to the port 3000.
- Log when a successful connection has been made.
- Make connections to multiple clients and great them when they connect the server.
- Save the chat history and make them available when someone joins the chat late.
- When a client leaves the chat, disconnect the client and make sure that incoming messages do not get forwarded to the disconnected client.
For the client.js:
- Define all the variables.
- Create a connection with the server.
- Make the client capable of writing messages.
- Make client capable of receiving messages from other clients.
- Log when connection has been lost.