Skip to content
Classgatewayv0.7.5

Subscriber

Base class for a gateway subscriber, binding this.core to the gateway Core.

abstract class Subscriber<
    KeyOfSubscribers extends SubscriptionKey
> extends Subscriber<KeyOfSubscribers, Core>

Member visibility

Filter class members by access level.

constructor

Instantiates the subscriber with event data and core.

Subscriber(data: AllSubscriptions[KeyOfSubscribers], core: TCore)
Parameter: data

The subscriber event data

Parameter: core

The core framework instance

Inherited from:Subscriber

Showing members with Protected visibility and higher.

Properties

Methods

KeyOfSubscribers

The subscription key this handler receives

KeyOfSubscribers extends SubscriptionKey

core

protected readonly core: TCore

Inherited from:Subscriber

execute()

Executes the subscriber handler logic.

abstract execute(): Promise<void>

Inherited from:Subscriber