Edit me

Send a recall message. After receiving the message, the other party deletes the message to be withdrawn

sender

/**
  * Send a withdrawal message
 * @param {Object} option - 
 * @param {Object} option.mid -   Recall message id
 * @param {Object} option.to -   The recipient of the message
 * @param {Object} option.type -  chat (single chat) groupchat (group) chatroom (chat room)
 * @param {Object} option.success - Recall the successful callback
 * @param {Object} option.fail- Recall the failed callback (more than two minutes)
 */
WebIM.conn.recallMessage(option)

receiver

conn.listen({
	onRecallMessage: function(message){
		//Delete message where id === message.mid
	}
})