UNPKG

micro-toolkit-event-bus-zeromq

Version:

The ØMQ implementation of event BUS based on ØMQ Clone Pattern and Clustered Hashmap Protocol.

13 lines (10 loc) 362 B
var config = { // optional, this is the default address address: 'tcp://127.0.0.1:5558', producerId: 'someproducer' } // var bus = require('micro-toolkit-event-bus-zeromq') var bus = require('../index') var publisher = bus.getPublisher(config) publisher.send('/example/topic', "somedata") console.log('Event was sent!') // eslint-disable-line no-console