Socket.IO Chat Server
A simple real-time chat server built with Node.js, TypeScript, Express, and Socket.IO. It connects to a basic HTML frontend and allows users to send and receive messages in real time.
Features
Real-time chat using Socket.IO
Shared chat history
Typing indicator
Supports multiple users
Setup
Install dependencies:
npm install
Start the server:
npm run start
Server runs on:
Usage
Start the server
Open the HTML file in a browser
Open multiple tabs to test chatting between users
How It Works
Clients connect using Socket.IO
Messages are sent to the server
Server broadcasts messages to all connected clients
Notes
Messages are stored in memory
Restarting the server clears the chat history