Documentation
    Preparing search index...

    Function createDecoder

    • Creates a decoder that decode messages without Waku level encryption.

      A decoder is used to decode messages from the 14/WAKU2-MESSAGE format when received from the Waku network. The resulting decoder can then be pass to @waku/interfaces!IReceiver.subscribe to automatically decode incoming messages.

      Parameters

      • contentTopic: string

        The resulting decoder will only decode messages with this content topic.

      • routingInfo: IRoutingInfo

        Routing information such as cluster id and shard id on which the message is expected to be received.

        Note that a routing info may be tied to a given content topic, this is not checked by the encoder.

      Returns Decoder