MCPcopy
hub / github.com/nestjs/nest / consumeChannel

Method consumeChannel

packages/microservices/client/client-rmq.ts:245–255  ·  view source on GitHub ↗
(channel: Channel)

Source from the content-addressed store, hash-verified

243 }
244
245 public async consumeChannel(channel: Channel) {
246 const noAck = this.getOptionsProp(this.options, 'noAck', RQM_DEFAULT_NOACK);
247 await channel.consume(
248 this.replyQueue,
249 (msg: ConsumeMessage | null) =>
250 this.responseEmitter.emit(msg!.properties.correlationId, msg),
251 {
252 noAck,
253 },
254 );
255 }
256
257 public registerErrorListener(client: AmqpConnectionManager): void {
258 client.addListener(RmqEventsMap.ERROR, (err: any) =>

Callers 2

setupChannelMethod · 0.95
client-rmq.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected