差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
im:web:basics:message [2020/05/19 03:53] lizg [发送自定义消息] |
im:web:basics:message [2020/07/29 08:58] zhangdong [发送附件消息] |
||
---|---|---|---|
行 244: | 行 244: | ||
var sendPrivateUrlImg = function () { | var sendPrivateUrlImg = function () { | ||
var id = conn.getUniqueId(); // 生成本地消息id | var id = conn.getUniqueId(); // 生成本地消息id | ||
- | var msg = new WebIM.default.message('img', id); // 创建图片消息 | + | var msg = new WebIM.message('img', id); // 创建图片消息 |
var option = { | var option = { | ||
body: { | body: { | ||
行 413: | 行 413: | ||
apiUrl: WebIM.config.apiURL, | apiUrl: WebIM.config.apiURL, | ||
file: file, | file: file, | ||
+ | length: '3', // 音频文件时长,单位 s | ||
to: 'username', // 接收消息对象 | to: 'username', // 接收消息对象 | ||
roomType: false, | roomType: false, | ||
行 696: | 行 697: | ||
- | 群聊: | + | 群聊''SDK增值功能'': |
* 发送群可以收已读回执的消息 | * 发送群可以收已读回执的消息 |