broker-proxy-rebbitmq
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Example

Producer

  • chenal - docService.start
  • message - '[*] Service start ' + new Date().toJSON()
const el = new BrokerProxy({ host: 'localhost' })
await el.connect()
await el.createChannel('docService.start');
el.emit('docService.start','[*] Service start ' + new Date().toJSON());

Consumer

  • callback - (msg) => { console.log(msg) }
const el = new BrokerProxy({ host: 'localhost' })
await el.connect()
await el.createChannel('docService.start');
el.on('docService.start').subscribe((msg) => { console.log(msg) });

subscribe - not an "Observer"


Readme

Keywords

Package Sidebar

Install

npm i broker-proxy-rebbitmq

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

3.34 kB

Total Files

4

Last publish

Collaborators

  • pikada-lab