#### 登录
~~~[api]
post:/user/login
*string:username#用户名
*string:password#密码
<<<
success
{
"status": 1,
"message": "success",
"data": {
"id": 1,
"username": "404404",
"ws": "ws://127.0.0.1:7001/"
}
}
<<<
example
{
"username": "404404",
"password": "123456"
}
~~~
#### 注册
~~~[api]
post:/user/login
*string:username#用户名
*string:password#密码
<<<
success
{
"status": 1,
"message": "success",
"data": {
"id": 1,
"username": "404404",
"ws": "ws://127.0.0.1:7001/"
}
}
<<<
example
{
"username": "404404",
"password": "123456"
}
~~~
#### websocket
~~~[api]
ws://127.0.0.1:7001/
*number:id#用户ID
<<<
success
{
"pingInterval": 25000
"pingTimeout": 5000
"sid": "cA5dSEQGtxNQ8qa0AAAB"
"upgrades": []
}
~~~