nsq-publisher
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -6,7 +6,7 @@ const Promise = require('bluebird'); | ||
class Publisher { | ||
constructor({ dataUrl, dataHttpPort, dataTcpPort, topic }) { | ||
constructor({ dataUrl, dataHttpPort, dataTcpPort, topic, protocol }) { | ||
this.dataUrl = dataUrl; | ||
this.dataTcpPort = dataTcpPort; | ||
this.topic = topic; | ||
this.topicUrl = `${dataUrl}:${dataHttpPort}/topic/create?topic=${topic}` | ||
this.topicUrl = `${protocol || 'http'}://${dataUrl}:${dataHttpPort}/topic/create?topic=${topic}`; | ||
} | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "nsq-publisher", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Simple way to create topics and publish messages in NSQ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# nsq-publisher | ||
Simple way to create topics and publish messages |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9968