/websocket2/{username}

请求头

参数名
类型
描述
必填
token
String
登录时返回的token值
必填

响应参数

参数名
类型
描述
必填
onlineUsers
Set<String>
所有在线用户
必填
allUser
List<User>
所有用户
必填
unreadsum
int
未读消息条数
必填

说明 / 示例

``` { "unreadsum": 2, "onlineUsers": [ "123" ], "allUser": [ { "create_time": 1672344854000, "password": "250cf8b51c773f3f8dc8b4be867a9a02", "update_time": 1672350157000, "grade": "2019", "name": "测试", "id": 2, "email": "2971755387@qq.com", "username": "测试" }, { "create_time": 1672345232000, "password": "c81e728d9d4c2f636f067f89cc14862c", "update_time": 1672345232000, "grade": "2", "name": "2", "id": 3, "email": "2971755387@qq.com", "username": "测试2号" }, { "create_time": 1676934967000, "password": "cf79ae6addba60ad018347359bd144d2", "update_time": 1676934967000, "grade": "2021", "name": "卓梦琪", "id": 7, "email": "2971755387@qq.com", "username": "21062201" }, { "create_time": 1677618138000, "profile_photo": "/images/f580b6d8-1b86-4b72-9e8c-50accff482f3.jpg", "sex": "u", "password": "0a113ef6b61820daa5611c870ed8d5ee", "update_time": 1677618138000, "grade": "2", "name": "陈帅彬", "id": 9, "email": "2971755387@qq.com", "username": "123" }, { "create_time": 1678739837000, "password": "a24de5631ae26b587066d3ce227b7f69", "update_time": 1678739837000, "grade": "202", "name": "陈帅彬", "id": 11, "email": "2565772575@qq.com", "username": "21062118" }, { "profession": "", "create_time": 1678912446000, "profile_photo": "/images/9f882d4b-1ea3-4fb5-b389-07b0989efa56.jpeg", "sex": "", "telephone": "", "password": "e563ab66620086087e2e12d0ea694b1c", "update_time": 1681680355000, "grade": "21", "name": "张子鉴", "nickname": "", "id": 12, "email": "331298156@qq.com", "username": "21062105" } ] } ```