Skip to content

Simple chat with Java backend and React frontend

Notifications You must be signed in to change notification settings

NessaTeal/nessenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple chat messenger with basic functionality. Contains both server and client implementations.

Server by default listen on port 80.

Client by default will try to connect to my server on 34.248.239.43. (Currently down)

Server API:

Server and client talk to each other using JSON. Type of request are set by setting variable type to appropriate value.

Type of messages server accepts:

  1. Choose nickname, type should be set to "chooseNickname" and variable "nickname" with desired nickname.
  2. Create Chatroom, type should be set to "createChatroom" and variable "chatroom" should be present, also user joins newly created chatroom immediately.
  3. Join Chatroom, type should be set to "joinChatroom" and variable "chatroom" should be present.
  4. Quit Chatroom, type should be set to "quitChatroom".
  5. Message to Chatroom, type should be set to "message" and variable "message" should be set to message user wants to send to current chatroom.
  6. Get Chatroom List, type should be set to "getChatroomList", response as JSON with variable "chatroomList".
  7. Disconnect, type should be set to "disconnect" required to free system resources.

On points 1, 3, 4, 5 and 7 server responds with JSON with type "message" and "message" contains message that will be written on users outputs. Point 6 produce JSON with type "management" and "chatroomList" contains JSONArray with list.

About

Simple chat with Java backend and React frontend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published