Function decodeEncryptedMessages

  • A static factory method to create an array of InboundMessage objects from an array of deserialized InboundMessage-like object encoded using Ably's wire protocol.

    Parameters

    • JsonArray: any[]

      An array of InboundMessage-like deserialized objects.

    • Optional channelOptions: ChannelOptions

      A ChannelOptions object. If you have an encrypted channel, use this to allow the library to decrypt the data.

    Returns Promise<InboundMessage[]>

    A promise which will be fulfilled with an array of InboundMessage objects.

Generated using TypeDoc