title: Nestjs - There is no matching event handler defined in the remote service
body: <p>I'm trying to handle the message published on topic <code>test_ack</code> from online MQTT broker using microservices. But I'm getting the error.</p>
  
  <p><code>There is no matching event handler defined in the remote service.</code></p>
  
  <p>My Code:</p>
  
  <p><strong>main.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import { NestFactory } from '@nestjs/core';
  import { AppModule } from './app.module';
  import { Transport } from '@nestjs/common/enums/transport.enum';
  var url = 'mqtt://test.mosquitto.org';
  
  async function bootstrap() {
      const app = await NestFactory.createMicroservice(AppModule, {
          transport: Transport.MQTT,
          options: {
              url: url
          }
      });
      await app.listenAsync();
  }
  bootstrap();
  </code></pre>
  
  <p><strong>app.controller.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import { Controller } from '@nestjs/common';
  import { MessagePattern } from '@nestjs/microservices';
  
  @Controller()
  export class AppController {
      constructor() {}
  
      @MessagePattern('test') 
      ackMessageTestData(data:unknown) {
          console.log(data.toString());
          return 'Message Received';
      }
  }
  </code></pre>