Skip to content

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 ​

ParameterType
pathstring
optionsChanxConsumerOptions

Returns ​

ClassDecorator

MIT licensed