Options
All
  • Public
  • Public/Protected
  • All
Menu

The builder handles the registration of subscriptions based on an existing method using the decorator style. It should only be used from AbstractGatewayBuilder.subscribe.

By default, the type of the Message Event is resolved from the name of the method. However, it can be directly set with GatewaySubscriptionBuilder.type.

The options of the subscription can be provided with GatewaySubscriptionBuilder.options.

Type parameters

  • E: HTMLElement

    the type of the Custom Element

  • M: Event

    the type of the Message Event

Hierarchy

  • GatewaySubscriptionBuilder

Index

Constructors

constructor

Methods

decorate

  • decorate(prefix?: string): MethodDecorator
  • Decorate the listener method which is invoked when the matching Event is published.

    When the type of the Event is not specified by GatewaySubscriptionBuilder.type, then the event type is discovered from the decorated method name. The pattern is <prefix><event-type>, where <prefix> is by default on.

    Parameters

    • prefix: string = "on"

      the prefix used to discover the type of the message event from the method name

    Returns MethodDecorator

options

type

Generated using TypeDoc