RongIMLib View Markdown
    Preparing search index...

    Function sendTypingStatusMessage

    • 发送输入状态消息

      Parameters

      Returns Promise<RCResult<IAReceivedMessage>>

      返回一个 RCResult 类型 Promise,data 结构为 IAReceivedMessage 类型

      发送输入状态消息,用于展示对方正在输入的状态

      发送输入状态消息示例:

      const conversation = {
      conversationType: RongIMLib.ConversationType.PRIVATE,
      targetId: 'targetId',
      }
      const typingContentType = RongIMLib.MessageType.TEXT;
      const typingRes = await RongIMLib.sendTypingStatusMessage(conversation, typingContentType);
      console.info('发送 typing 消息结果:', typingRes);