Function chatMessageFromEncoded

  • A method to create a chat message from a deserialized inboundMessage-like object encoded by Ably.

    Parameters

    • encoded: unknown

      The deserialized inboundMessage-like object. encryption options if you have chosen to encrypt the messages sent to your integration.

    Returns Promise<Message>

    A promise that resolves with a chat message.

    ErrorInfo - If there is an error parsing the message.