Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

ZMQ -> ZeroMQ #190

Merged
merged 9 commits into from
Aug 6, 2018
Merged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ var ascoltatori = require('ascoltatori');
var settings = {
type: 'zmq',
json: false,
zmq: require("zmq"),
zmq: require("zeromq"),
port: "tcp://127.0.0.1:33333",
controlPort: "tcp://127.0.0.1:33334",
delay: 10
Expand Down
2 changes: 1 addition & 1 deletion lib/zeromq_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function ZeromqAscoltatore(opts) {

this._opts = opts || {};
this._opts.delay = this._opts.delay || 5;
this._opts.zmq = this._opts.zmq || require("zmq");
this._opts.zmq = this._opts.zmq || require("zeromq");

this._connectedControls = [];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"optionalDependencies": {
"ioredis": "^2.3.0",
"msgpack-lite": "^0.1.20",
"zmq": "^2.14.0",
"zeromq": "*",
"amqp": "~0.2.4",
"amqplib": "~0.5.1",
"mqtt": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ global.nextPort = function() {
global.zeromqSettings = function(remote_ports) {
return {
json: false,
zmq: require("zmq"),
zmq: require("zeromq"),
port: "tcp://127.0.0.1:" + global.nextPort(),
controlPort: "tcp://127.0.0.1:" + global.nextPort(),
delay: 10
Expand Down