Skip to content

Commit

Permalink
feat(microservices): return all clients from kafka unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyazgara committed Jan 21, 2025
1 parent 73b9232 commit 3d1910c
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 3d1910c

Please sign in to comment.