A simple chat application implemented in Java, consisting of a server and client components. The chat is done on local, the server and all the machines are all on the same computer. There could be additional features in the future.
- Server: Handles connections from multiple clients, relays messages between clients, and supports various commands for managing the chat.
- Client: Connects to the server, allows users to enter their name, send messages to the server, and receive messages from other clients.
- ASCII Art Reactions: Includes a collection of ASCII art reactions that users can send in the chat.
- Java Development Kit (JDK) 8 or later
- Clone the repository
- Go to the beginning of the package :
cd src/main/java
- Create the
.class
files
javac cuni/mff/chollonm/utils/*
- Start the server:
java cuni.mff.chollonm.utils.Server
- Change terminal and launch the first client
java cuni.mff.chollonm.utils.Client
- Repeat the operation
.5
the same number of time that you want clients. Follow the prompts to enter your name and start chatting. - When you want to end the chat, don't do it the harsh way with
^C
but simply typeexit
.
- Go to the server file and click on the
RUN
button to run the current file. - Go to the client file and click on the
RUN
button to create one client. - Repeat the operation
.3
the same number of time that you want clients. Follow the prompts to enter your name and start chatting.
-hp: Display help message with available commands.
-dm [username] [message]: Send a private message to a specific user.
-cu [group_name] [members ...]: Create a private group chat.
-sg [group_name] [message]: Send a message to a specific group.
-la: Display available ASCII art reactions.
-pa [name_of_ascii_art]: Send a reaction using ASCII art.
-sc [color]: Change the color of your chat messages.
exit: Exit the chat application.
The docs
folder contains the JavaDoc documentation generated from the source code. You can open the index.html
file in a web browser to view the documentation.
This chat application was developed by Mathilde Chollon.