Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Module } from '@nestjs/common';
import { Transport } from '@nestjs/common/enums/transport.enum';
import { ClientsModule } from '@nestjs/microservices';
import { MATH_SERVICE } from './math.constants';
import { MathController } from './math.controller';
@Module({
imports: [
ClientsModule.register([{ name: MATH_SERVICE, transport: Transport.TCP }]),
],
controllers: [MathController],
})
export class MathModule {}