CAP Node.js API / cap-nest/src / CapSubscribe
CapSubscribe<
T>(opts,maybeGroup?):MethodDecorator
Defined in: cap-nest/src/cap/decorators/cap-subscribe.decorator.ts:42
Decorate a method so the CAP worker knows it should be invoked
when a message on topic (optionally group) arrives.
@CapSubscribe({ topic: 'user.created', group: 'mail-service' })
async handleUserCreated(evt: UserCreated) { ... }
T = unknown
string | CapSubscribeOptions<T>
string
MethodDecorator