Function decodeEncryptedMessage

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

    Parameters

    • JsonObject: any

      A InboundMessage-like deserialized object.

    • 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 InboundMessage object.

Generated using TypeDoc