Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pieceowater-dev/lotof.lib.broadcaster
Broadcasting library-helper designed to facilitate communication within applications.
https://github.com/pieceowater-dev/lotof.lib.broadcaster
backend library microservices nestjs utilities
Last synced: about 1 month ago
JSON representation
Broadcasting library-helper designed to facilitate communication within applications.
- Host: GitHub
- URL: https://github.com/pieceowater-dev/lotof.lib.broadcaster
- Owner: pieceowater-dev
- License: mit
- Created: 2024-07-20T10:32:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-26T08:56:33.000Z (about 2 months ago)
- Last Synced: 2024-09-29T01:42:38.511Z (about 2 months ago)
- Topics: backend, library, microservices, nestjs, utilities
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@pieceowater-dev/lotof.lib.broadcaster
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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: 📥
```sh
npm install @pieceowater-dev/lotof.lib.broadcaster
```## Usage example
NestJS Microservice bootstrap
```typescript
// 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](LICENSE) file for details.## Author
![PCWT Dev Logo](https://avatars.githubusercontent.com/u/168465239?s=40)
### [PCWT Dev](https://github.com/pieceowater-dev)