30 lines
711 B
Plaintext
30 lines
711 B
Plaintext
聊天服务器定义
|
||
[
|
||
{
|
||
"id": "1",
|
||
"name": "全国大区1",
|
||
"status": "full",
|
||
"onlinecount": 2000,
|
||
"category": 0,
|
||
"url": "ws://test.fishlee.net/chathandler.ashx/room1"
|
||
},
|
||
{
|
||
"id": "2",
|
||
"name": "全国大区2",
|
||
"status": "ok",
|
||
"onlinecount": 1533,
|
||
"category": 0,
|
||
"url": "ws://test.fishlee.net/chathandler.ashx/room2"
|
||
}
|
||
]
|
||
|
||
聊天操作。发送消息
|
||
1.进入房间
|
||
{action:"join", roomid:"room1", user:"iccfish", nickName:"木鱼"}
|
||
|
||
2.发送消息
|
||
{action:"send", target:"@iccfish [私聊]", content:"消息内容", color:"red"}
|
||
|
||
3.接收消息
|
||
{action:"receive", items: [ source:"木鱼(@iccfish)", time:"14:28:39", content:"消息内容", color:"red", specid:0 ]}
|
||
specid:比特位,1-系统消息,2-私聊,4-预置,8-预置,16-预置,32-预置 |