AppleSauce
    Preparing search index...
    Index

    Constructors

    Properties

    factory: EventFactory
    log: Debugger = ...
    publish: PublishMethod
    relays: string[]

    Methods

    • Makes a request to the DVM and returns an observable for the responses

      Parameters

      • kind: number

        The kind of request to send

      • Optionaloptions: {
            dvms?: string[];
            inputs?: RequestInput[];
            params?: Record<string, string | string[]>;
            relays?: string[];
        }

        The options for the request

        • Optionaldvms?: string[]

          The DVMs to tag for this request

        • Optionalinputs?: RequestInput[]

          Inputs for this request

        • Optionalparams?: Record<string, string | string[]>

          A directory of parameters for the request

        • Optionalrelays?: string[]

          The specific relays to use for this request

      Returns Observable<Event>

      An observable for the responses

    • Make a translation request to a target language

      Parameters

      • text: string | Event
      • language: string = "en"

      Returns Observable<Event>