消息示例
{
"topic": "message",
"msg": {
"uid": "10053",
"chat_type": 0,
"to_id": 10000,
"msg_type": 0,
"msg": "这是一个消息",
"ctime": 1587795081,
"head_img": "http://chat.mpfphp.com/static/img/head_img/12.jpg",
"name": "半世迷离"
}
}
字段说明:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
topic | 是 | string | 消息主题名称 |
msg | 是 | object | 消息内容 |
msg.uid | 是 | int | 用户id |
msg.chat_type | 是 | int | 聊天类型 |
msg.to_id | 是 | int | 和谁聊天的id |
msg.msg_type | 是 | int | 消息类型 |
msg.msg | 是 | string | 消息内容 |
msg.ctime | 是 | int | 发送消息时间戳 |
msg.head_img | 是 | string | 发送人的头像 |
msg.name | 是 | string | 发送人的名称 |