Skip to content

WebSocket Chat Application: A simple chat application using WebSocket, Node.js, and HTML/JavaScript for real-time communication between client and server.

Notifications You must be signed in to change notification settings

PriyanshuKSharma/WebSocket-Chat-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket Chat Application

WebSocket Chat Application:
A simple chat application using WebSocket, Node.js, and HTML/JavaScript for real-time communication between client and server.

WebSocket Chat Application

This project demonstrates a simple WebSocket-based chat application implemented using Node.js with Express for the server-side and HTML/JavaScript for the client-side.

Features:

Real-time Communication: Utilizes WebSocket technology to establish a real-time bidirectional communication channel between the client and server.
Client-Server Interaction: Allows users to send text messages from the client interface to the server, and vice versa.
Easy to Use: Simple user interface with an input field and a send button for sending messages.
Logging: Logs messages exchanged between the client and server for debugging purposes.

Project Structure:

Client: Contains the HTML file (index.html) with JavaScript code for the client-side interface.
Server: Includes the server-side JavaScript file (server.js) implementing the WebSocket server using Express and ws.

Usage:

1] Clone the repository to your local machine.
2] Navigate to the server directory and run node server.js to start the WebSocket server.
3] Open a separate terminal, navigate to the client directory, and open index.html in a web browser.
4] Start typing messages in the input field, and click "Send" to send messages to the server.
5] Messages sent from the client will be logged on both the client and server sides, and the server will respond with a "Thank you!" message.

Technologies Used:

Node.js
Express
WebSocket (ws)

Contributions:

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

About

WebSocket Chat Application: A simple chat application using WebSocket, Node.js, and HTML/JavaScript for real-time communication between client and server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published