NSQ Publisher
Simple way to create topics and publish messages.
Installation
npm instal --save nsq-publisher
Usage
const Publisher = ; const pub = dataUrl: 'localhost' // optional dataHttpPort: 4151 // optional dataTcpPort: 4150 // optional topic: 'test-topic' protocol: 'http' // optional autoCreate: false // optional; // pub.createTopic is necessary to make sure that topic exists, // but is not necessary if autoCreate is set to truepub;// orpub ; pub; // or pub ;