差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
im:web:basics:message [2019/07/22 10:40] zhangdong [发送文本消息(单聊)] |
im:web:basics:message [2019/07/22 10:43] zhangdong [发送文本消息(聊天室)] |
||
---|---|---|---|
行 75: | 行 75: | ||
to: 'group id', // 接收消息对象(群组id) | to: 'group id', // 接收消息对象(群组id) | ||
roomType: false, // 群聊类型,true时为聊天室,false时为群组 | roomType: false, // 群聊类型,true时为聊天室,false时为群组 | ||
+ | ext: {}, // 扩展消息 | ||
success: function () { | success: function () { | ||
console.log('send room text success'); | console.log('send room text success'); | ||
行 99: | 行 100: | ||
to: 'chatroom id', // 接收消息对象(聊天室id) | to: 'chatroom id', // 接收消息对象(聊天室id) | ||
roomType: true, // 群聊类型,true时为聊天室,false时为群组 | roomType: true, // 群聊类型,true时为聊天室,false时为群组 | ||
+ | ext: {}, // 扩展消息 | ||
success: function () { | success: function () { | ||
console.log('send room text success'); | console.log('send room text success'); |