Module
@Module({
imports: [
ClientsModule.register([
{
name: 'CATS_SERVICE',
transport: Transport.TCP,
options: {
host: 'localhost',
port: 4200
}
},
])
]
controllers: [CatsController],
})
export class CatsModule {}

@Module({
controllers: [CatsController],
providers: [CatsService],
})
export class CatsModule {}