Interface: SubscriberObject<T>
#
Type parametersName | Type |
---|---|
T | unknown |
#
HierarchyOmit
<SubscriberMetadata
,"options"
>MessageHandler
<T
>FlexibleObject
↳
SubscriberObject
#
Properties#
description• Optional
description: string
#
Inherited fromOmit.description
#
Defined insrc/subscriber/subscriberV2.ts:113
#
options• Optional
options: SubscriberOptions
#
Defined insrc/subscriber/subscriberV2.ts:142
#
subscriptionName• subscriptionName: string
#
Inherited fromOmit.subscriptionName
#
Defined insrc/subscriber/subscriberV2.ts:111
#
topicName• topicName: string
#
Inherited fromOmit.topicName
#
Defined insrc/subscriber/subscriberV2.ts:110
#
Methods#
handleErrorâ–¸ Optional
handleError(error
): void
If passed, it would serve as the error handler method for internal google pubsub errors
#
ParametersName | Type |
---|---|
error | Error |
#
Returnsvoid
#
Inherited fromMessageHandler.handleError
#
Defined insrc/subscriber/subscriberV2.ts:130
#
handleMessageâ–¸ handleMessage(message
): void
will run every time a message is received
#
ParametersName | Type |
---|---|
message | Message <T > |
#
Returnsvoid
#
Inherited fromMessageHandler.handleMessage
#
Defined insrc/subscriber/subscriberV2.ts:120
#
initâ–¸ Optional
init(): void
will run before the message handler is attached to the subscription
#
Returnsvoid
#
Inherited fromMessageHandler.init