# chatroom01 **Repository Path**: baseweb/chatroom01 ## Basic Information - **Project Name**: chatroom01 - **Description**: 每请求一个线程的版本处理的聊天室项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-12-13 - **Last Updated**: 2023-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用每个请求一个线程,实现的聊天室 # 使用流程: 1. 登录并查看登录信息: ```shell telnet 127.0.0.1 9001 ``` 回显: ```shell 请输入用户名和密码(用 :分隔,如输入 ls 查看登录用户信息) ``` 登录:(可用账号:tom:234,alice:345) ```shell john:123 ``` 回显token: ```shell 2f9ae0d6-c7ff-4849-95f1-421e0fce3c4d ``` 查看登录: ```shell ls ``` 2. 聊天: 进入聊天室: ```shell telenet 127.0.0.1:9000 active:2f9ae0d6-c7ff-4849-95f1-421e0fce3c4d ``` 回显: ```shell 登录成功 或者 用户名密码错误 ``` 查看在线人数: ```shell health ``` 私聊:(向 tom 发信息) ```shell chat:tom:信息内容 ``` 离开: ```shell bye ```