API reference / @chanx-js/nestjs / ChanxConsumer
Function: ChanxConsumer()
ts
function ChanxConsumer(path, options): ClassDecorator;Defined in: packages/nestjs/src/decorators.ts:54
A chanx consumer as an injectable gateway on a route: its @On methods handle messages.
Parameters
| Parameter | Type |
|---|---|
path | string |
options | ChanxConsumerOptions |
Returns
ClassDecorator