差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
im:applet:message [2020/04/28 10:25]
zhangdong [发送附件消息]
im:applet:message [2020/04/28 10:28] (当前版本)
zhangdong [接收消息]
行 474: 行 474:
   * [[http://​webim-h5.easemob.com/​jsdoc/​out/​connection.html#​send|send]]   * [[http://​webim-h5.easemob.com/​jsdoc/​out/​connection.html#​send|send]]
  
 +----
 +
 +===== 消息撤回 =====
 +SDK增值服务。
 +<code javascript>​
 +/**
 + * 发送撤回消息
 +  * @param {Object} option - 
 + * @param {Object} option.mid -   ​回撤消息id
 + * @param {Object} option.to -   ​消息的接收方
 + * @param {Object} option.type -  chat(单聊) groupchat(群组) chatroom(聊天室)
 + */
 +WebIM.conn.recallMessage(option)
 +</​code>​
 ---- ----
 ===== 接收消息 ===== ===== 接收消息 =====
行 489: 行 503:
     onLocationMessage:​ function ( message ) {},//​收到位置消息     onLocationMessage:​ function ( message ) {},//​收到位置消息
     onFileMessage:​ function ( message ) {},    //​收到文件消息     onFileMessage:​ function ( message ) {},    //​收到文件消息
 +    onCustomMessage:​ function ( message ) {},  //​收到自定义消息
     onVideoMessage:​ function (message) {     onVideoMessage:​ function (message) {
         var node = document.getElementById('​privateVideo'​);​         var node = document.getElementById('​privateVideo'​);​