Skip to content

Commit

Permalink
Merge pull request #14469 from kostyazgara/return-kafkajs-consumers-a…
Browse files Browse the repository at this point in the history
…nd-producers

feat(microservices): return all clients from kafka unwrap
  • Loading branch information
kamilmysliwiec authored Jan 22, 2025
2 parents 377f671 + 3d1910c commit 3c9f2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/microservices/server/server-kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class ServerKafka extends Server<never, KafkaStatus> {
'Not initialized. Please call the "listen"/"startAllMicroservices" method before accessing the server.',
);
}
return this.client as T;
return [this.client, this.consumer, this.producer] as T;
}

public on<
Expand Down

0 comments on commit 3c9f2ad

Please sign in to comment.