Skip to content

EraldCaka/chat-room-client

Repository files navigation

Chat Room Client

Welcome to the Chat Room Client! This is a simple chat room client that connects users to a server, allowing them to send and receive messages in real time. Users can create different rooms and join existing ones to engage in conversations with others.

Installation

To install all the dependencies, run the following command in your terminal:

npm install

Usage

To start the client, use the following command:

npm start

Screenshots

Hub Page

This is the hub page where users can create new rooms or join existing ones. image

Chat Room Client

Here is an example where three users are chatting in the same room. The user on the left has created the room, and the other two users have joined it. The user on the right has sent a message, and the other two users have received it in real time. Screenshot 2024-02-12 234318

Features

  1. Login, Registration and User Authentication: Users can create an account or log in with an existing one while being authenticated with a cookie provided by the server.
  2. Real-time Chat: Engage in conversations with other users in real time.
  3. Room Creation: Create new chat rooms to invite others to join.
  4. WebSocket Connection: Utilizes WebSocket technology for real-time communication.
  5. Axios API Calls: Handles API calls using the Axios library for efficient communication with the server.

Future Improvements

  1. Active Users in Room: Display the number of active users in a room.
  2. Typer Indicator: Show when a user is typing a message with their name.