Function createEncoder

  • Creates an encoder that encode messages without Waku level encryption or signature.

    An encoder is used to encode messages in the [`14/WAKU2-MESSAGE](https://rfc.vac.dev/spec/14/) format to be sent over the Waku network. The resulting encoder can then be pass to @waku/interfaces.LightPush.push or @waku/interfaces.Relay.send to automatically encode outgoing messages.

    Parameters

    • contentTopic: string

      The content topic to set on outgoing messages.

    • ephemeral: boolean = false

      An optional flag to mark message as ephemeral, ie, not to be stored by Waku Store nodes.

    Returns Encoder

Generated using TypeDoc