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

Method consumer

packages/microservices/client/client-kafka.ts:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 protected _producer: Producer | null = null;
74
75 get consumer(): Consumer {
76 if (!this._consumer) {
77 throw new Error(
78 'No consumer initialized. Please, call the "connect" method first.',
79 );
80 }
81 return this._consumer;
82 }
83
84 get producer(): Producer {
85 if (!this._producer) {

Callers 3

connectMethod · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected