聊天室事件通知

1 聊天室新建请求

action:AEC_CHATROOM_CREATE

{"action":"AEC_CHATROOM_CREATE","userId":"xxx","roomId":"xxx","roomType":"x","conCurrentNumber":"200","userDefineData":"xxxxx"}
//返回 {"status":"x"}

其中

userId:请求创建聊天室的用户id

userDefineData:客户端创建聊天室时chatroomName参数的值,可以根据自己的业务逻辑来决定其内容,比如里面可以传聊天室名也可以传json。

2 请求删除聊天室

action:AEC_CHATROOM_DELETE

{"action" : "AEC_CHATROOM_DELETE","userId":"xxx","roomId":"xxx"}
//返回 {"status":"x"}

3 查询聊天室是否存在

action:AEC_CHATROOM_IS_EXIST

{"action" : "AEC_CHATROOM_IS_EXIST","userId" : "xxx","roomId" : "xxx"}
//返回 {"status":"x","data":"roomCreaterUserId,conCurrentNumber"}

data字段需要返回房间创建者和房间的人数上限,用逗号分隔。