A Real-Time Chat Application with WebSockets
A full-stack real-time chat application built using React, TypeScript, and WebSockets. Create private rooms, exchange instant messages, and collaborate seamlessly across devices.
- π Instant Messaging β Real-time communication via WebSockets
- π Private Rooms β Join or create rooms with unique 6-character codes
- π§ User Identity β Choose your display name for personalized chats
- βοΈ Typing Indicators β See when others are typing in real-time
- π Auto-Reconnect β Seamless recovery from dropped connections
- π Built-in Docs β Easy-to-access usage guide
- π± Responsive UI β Tailwind CSS-powered design for all screen sizes
Frontend | Backend | Tooling |
---|---|---|
React + TypeScript | Node.js (ws library) |
Vite, ESLint, Prettier |
Tailwind CSS | WebSocket Protocol |
git clone https://github.com/imshubham07/WebChat.git
cd webchat
Client:
cd client
npm install
Server:
cd ../server
npm install
Start WebSocket Server (from server
directory):
node index.js
Start Frontend Client (from client
directory):
npm run dev
Visit: http://localhost:5173
- Enter a username and room code to join
- Create a room using the "Generate" option or join an existing one
- Start chatting in real-time!
- Use the navigation bar to access documentation or exit rooms
This project is licensed under the MIT License
Β© 2025