Skip to content

Tygovanommen/Java-socket-chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple java socket chat room

A simple java socket chat room application. Chat in different rooms with different people.

Version badge License badge

How to use · Features · Commands · User Stories

screenshot

How to use

Change the port and host property to desired value in server.properties and user.properties

port = 5000
host = localhost

Before you open the client executable, make sure the Server layer is up and running. This can be either on a local PC or on a server.

User data storage

User accounts/data is stored inside the users.json file. This file can be manually adjusted or be automatically generated through the profile editing form. It contains a json object of 1 or more users.

[
  {
    "color": "#669966ff",
    "name": "User1",
    "display_picture": "",
    "notifications": "Yes"
  }
]

Features

  • Multithreaded chatting (with rooms)
  • User commands
  • Create and update user accounts
  • Manage server and user properties

Etc.

Commands

Command Description
/help or /info Get a list of all commands
/users Get a list of all online users
/room room_name Change the room you are in. Keep room_name empty to see what room you are currently in
/dm user_name message send a DM (direct message) to a specific user

User Stories

General

  • Language file(s)
  • Create Room class so not all threads have to be loop for each message
  • User roles

User experience

  • Users can send Media.
  • Users can send Links.
  • Custom top bar
  • Room navigation
  • Set and change display picture