Function $event

  • event producer builder

    Parameters

    • context: NextContext<NextIdentity<any>>

      current context

    • defEndpoint: string = ''

      (optional) the default endpoint.

    Returns { publish: ((body: { [key: string]: any }) => Promise<string>) }

    • publish: ((body: { [key: string]: any }) => Promise<string>)
        • (body: { [key: string]: any }): Promise<string>
        • Parameters

          • body: { [key: string]: any }
            • [key: string]: any

          Returns Promise<string>

Generated using TypeDoc