# 聊天室 **Repository Path**: flamez57/chat_boxes ## Basic Information - **Project Name**: 聊天室 - **Description**: 聊天室 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-08 - **Last Updated**: 2025-08-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 聊天室 #### 介绍 聊天室 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. http://localhost:8857/boxes/toChat/user-1 2. http://localhost:8857/boxes/toChat/user-2 3. http://localhost:8857/boxes/toChat/user-3 #### 消息类型 客户端发给服务端的消息 ```json {"sid":"toUserId","message":"contentText"} ``` 服务端发给客户端的消息 在线用户列表 ```json {"type": "1", "data": [{"uid": "1", "uName": "李白"}]} ``` 上线用户 ```json {"type": "2", "data": {"uid": "2", "uName": "王维"}} ``` 下线用户 ```json {"type": "3", "data": {"uid": "3", "uName": "杜甫"}} ``` 用户普通消息 ```json {"type": "4", "data": {"uid": "4", "uName": "杜甫", "message": "消息内容", "date": "2006-01-02 15:04:05"}} ``` #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)