Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.09 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.09 KB

lotof.lib.broadcaster

@pieceowater-dev/lotof.lib.broadcaster is a broadcasting library designed to facilitate communication within applications. 📢📡

Installation

You can install the library via npm: 📥

npm install @pieceowater-dev/lotof.lib.broadcaster

Usage example

NestJS Microservice bootstrap

// src/main.ts
import { AppModule } from './app.module';
import { Transport } from '@nestjs/microservices';
import { bootstrap } from '@pieceowater-dev/lotof.lib.broadcaster';

bootstrap(AppModule, {
  portEnvVar: 'PORT',
  microservices: [
    {
      transport: Transport.RMQ,
      urlEnvVars: ['RABBITMQ_URL'],
      queue: 'template_queue',
    },
  ],
}).then((r) => console.log('Booted successfully 🚀'));

Make sure to include the library in your project dependencies to start using its broadcasting capabilities. 🚀

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

PCWT Dev Logo