Skip to content

A chat server implemented using websocket - a full-duplex client-server connection

Notifications You must be signed in to change notification settings

anjelica0224/websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket-Based Chat Application

This project demonstrates a simple WebSocket-powered chat application. It establishes a persistent, bi-directional connection between a client and a server, allowing real-time communication similar to a chat room.

Bi-directional communication: Messages can be sent from both the client and the server.

Persistent connection: The connection remains open, enabling real-time updates.

Multi-user support: Multiple clients can connect to the server simultaneously, with random colors assigned to thier profiles!

Chat-server link - https://aj-websocket.foo.ng

image1 image2

Usage:

  1. Clone the repository: git clone https://github.com/anjelica0224/websocket.git
  2. Navigate to the server directory. Start the server: Run the server script (node server.js).
  3. Open the client: Access the client application (index.html) in multiple browsers.
  4. Start chatting: Send messages from each browser, and they will be displayed in all connected clients.

About

A chat server implemented using websocket - a full-duplex client-server connection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published