# webChat **Repository Path**: withoutRock/web-chat ## Basic Information - **Project Name**: webChat - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-01 - **Last Updated**: 2025-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LAN Chat Room A lightweight, zero-dependency chat room application for local area networks. ## Features - Create chat rooms - Join existing rooms - Share invite links for easy access - Real-time messaging - User presence indicators - No third-party dependencies ## Quick Start 1. Start the server: ```bash npm start ``` 2. Open your browser and navigate to: ``` http://localhost:3000 ``` 3. Create a room or join an existing one! ## Architecture - **Backend**: Pure Node.js with built-in modules - **Frontend**: Vanilla JavaScript, HTML5, CSS3 - **Communication**: Native WebSocket API - **Storage**: In-memory data structures ## Usage ### Creating a Room 1. Enter a room name on the home page 2. Optionally set a password 3. Click "Create Room" 4. Share the generated invite link with others ### Joining via Invite Link 1. Click on an invite link shared by someone 2. Enter your nickname 3. Start chatting! ## Technical Details - **Server Port**: 3000 (configurable) - **Max Users per Room**: 50 (configurable) - **Message History**: Stored in memory during session - **Supported Browsers**: Modern browsers with WebSocket support ## issue 这个单页面架构有点儿问题哦,最好还是分成两个页面,一个页面是聊天页面,一个页面是登录页面。 已解决 失焦就断开连接这里还是存在问题。 ## TODO 支持发送图片、语音、 文件。