1.0.7 • Published 5 years ago

broker-proxy-rebbitmq v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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"


1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago