This is a Netty server using Websockets for the communication between the server and a client.
The code provides basic functionality and the below actions:
- Connect to the webscoket server
- Log into the chat room, by choosing a user name
- Send chat messages which will be broadcasted to other connected clients
- Logout of the server
A very basic UI can be found at /src/main/resources/index.html
![Image of Client UI] (https://github.com/nikkatsa/nk-groupchat/blob/master/src/main/resources/web/assets/ClientUI.png)
The server code can be found at /src/main/java/com/nikoskatsanos/netty/groupchat
Below are the steps for building the server. Note that the code has a dependency to nk-jutil, which is not pushed in Maven Central Repo, hence the user has to manually pull the project and build it, before building the Groupchat server.
- Pull nk-jutil
- Build nk-jutils by
mvn clean install
- Pull nk-groupchat
- Build nk-groupchat by
mvn clean install
- Run .sh file in /target/appassembler/bin
- Launch /src/main/resources/index.html