Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.6 KB

File metadata and controls

60 lines (44 loc) · 1.6 KB

Socket Chat

Real-time chat application with room support and location sharing

🌟 Features

  • Real-time messaging - Instant message delivery using Socket.IO
  • Chat rooms - Create and join different chat rooms
  • Location sharing - Share your current location with other users
  • Profanity filter - Blocks inappropriate messages
  • Auto-scroll - Automatically scrolls to new messages
  • User lists - Shows active users in each room
  • Clean UI - Minimalist and responsive design

🛠️ Tech Stack

🚀 Getting Started

  1. Install dependencies:
npm install
  1. Start development server:
npm run dev
  1. Open http://localhost:3000 in your browser

📝 Usage

  1. Enter your name and room name to join
  2. Start chatting with others in the room
  3. Use "Send Location" to share your coordinates
  4. Messages are delivered instantly to all room members

🔄 WebSocket Events

  • connection - New user connects
  • join - User joins a room
  • sendMessage - Send chat message
  • sendLocation - Share location
  • disconnect - User leaves

📱 Responsive Design

  • Mobile-first approach
  • Clean and minimalist UI
  • Optimized for all screen sizes