Class: SubscriptionService
#
Constructors#
constructor• new SubscriptionService()
#
Defined insrc/service/subscription.ts:26
#
Properties#
_subscribersâ–ª Static
Private
_subscribers: Subscribers
= []
#
Defined insrc/service/subscription.ts:20
#
defaultSubscriberOptionsâ–ª Static
defaultSubscriberOptions: SubscriberOptions
#
Defined insrc/service/subscription.ts:22
#
instanceâ–ª Static
instance: SubscriptionService
#
Defined insrc/service/subscription.ts:24
#
subscribersâ–ª Static
subscribers: (typeof Subscriber
| typeof default
| SubscriberObject
)[] = []
#
Defined insrc/service/subscription.ts:15
#
Methods#
checkExistenceâ–¸ Protected
checkExistence(object
, property
): void
#
ParametersName | Type |
---|---|
object | any |
property | string |
#
Returnsvoid
#
Defined insrc/service/subscription.ts:30
#
closeAllâ–¸ Static
closeAll(): Promise
<void
>
Call this function from a process exit handler to close all current subscriptions
#
ReturnsPromise
<void
>
#
Defined insrc/service/subscription.ts:59
#
getSubscribersâ–¸ Static
getSubscribers(): Subscribers
#
ReturnsSubscribers
#
Defined insrc/service/subscription.ts:63
#
handleErrorâ–¸ Static
handleError(error
): void
If passed, it would serve as the default error handler at SubscriptionService level Applications should override this with custom error handling
#
ParametersName | Type |
---|---|
error | Error |
#
Returnsvoid
#
Defined insrc/service/subscription.ts:49
#
initâ–¸ Static
init(): Promise
<void
>
#
ReturnsPromise
<void
>
#
Defined insrc/service/subscription.ts:41
#
loadSubscribersâ–¸ Static
Private
loadSubscribers(): Subscribers
#
ReturnsSubscribers
#
Defined insrc/service/subscription.ts:72
#
loadSubscriptionServiceâ–¸ Static
loadSubscriptionService(): typeof SubscriptionService
#
Returnstypeof SubscriptionService
#
Defined insrc/service/subscription.ts:112
#
mergeSubscribersâ–¸ Static
Private
mergeSubscribers(subscribersFromService
, subscribersFromDirectory
): Subscribers
#
ParametersName | Type |
---|---|
subscribersFromService | Subscribers |
subscribersFromDirectory | Subscribers |
#
ReturnsSubscribers