UNPKG

wrabbity

Version:

a node package that provides a simple API for interfacing with RabbitMq

15 lines (9 loc) 290 B
var wrabbity = require('../../wrabbity'); async function publishSimulator() { let r = new wrabbity(rabbitMqServer='amqp://localhost'); await r.ready; r.eventPublisher(publisherName="tester", routingKey="test", message="msg from publisher"); } publishSimulator();