Function chatMessageFromAblyMessage

  • Converts an Ably inboundMessage to a chat message. You can use the getEntityTypeFromAblyMessage method to determine if the type of the entity is a chat message before calling this method.

    Parameters

    Returns Message

    Message - The converted chat message.

    ErrorInfo - If there is an error parsing the message.