/datJ-chat

Simple Java chat system

Primary LanguageJavaMIT LicenseMIT

Java chat project

Screenshots

Chat Session Overview

Chat Connect Screen

Quick Start

[Method A] Maven
  1. Build the project: mvn clean package
  2. Start the server: mvn exec:java (NOTE: 9567 is the default port)
  3. Launch the client GUI: mvn jfx:run

[Method B] Basic
  1. Server CLI: run server.Main
  2. Client GUI: run client.Main (NOTE: 9567 is the default port)

Protocol

Documentation at doc/protocol.md.

Client -> Server                                Server -> Client
----------------                                ----------------
JOIN <user_name>                                J_OK
                                                J_ER <err_code>: <err_msg>
DATA <user_name>: <text>                        DATA <user_name>: <text>
IMAV                                            LIST <user_name1 user_name2 ...>
QUIT

License

This project is MIT licensed. Please see the LICENSE file for more information.