# websocket聊天室 **Repository Path**: copy-with/WebSocket-demo ## Basic Information - **Project Name**: websocket聊天室 - **Description**: Nodejs+express+websocket实现聊天室功能 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-10 - **Last Updated**: 2021-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README


### 1.安装node(https://nodejs.org/en/download/)
  具体可参照:https://www.cnblogs.com/zhouyu2017/p/6485265.html
  node -v//测试版本号

### 2.安装express
``` npm install express -g npm install express-generator -g express -v//测试版本号 ```

### 3.在项目目录中express demo初始化express框架,cd到demo目录下

### 4.安装websocket、socket.io(聊天室)
``` npm install npm install ws npm install socket.io ```

### 5.node *.js 启动服务 ``` node websocket.js ```