Lazy Microservice Client

Sometimes you have to load initial data before you can create your @Client(). In this case, you can use ClientProxyFactory, which provides create() method.

import { ClientProxyFactory } from '@nestjs/microservices';
const client = ClientProxyFactory.create({
    transport: Transport.TCP,
});

results matching ""

    No results matching ""