Initialize Module
🧩 Defining the Messaging Module
🔧 Starter Setup
import { Module } from '@nestjs/common';
import { MessagingModule, InMemoryChannelConfig } from '@nestjstools/messaging';
@Module({
imports: [
MessagingModule.forRoot({
buses: [
{
name: 'my-channel.bus',
channels: ['my-channel'],
},
],
channels: [
new InMemoryChannelConfig({
name: 'my-channel',
}),
],
debug: true,
}),
],
})
export class AppModule {}📌 Notes
🚀 What’s Happening Here?
Property
Description
Last updated