corrected pubsub constructor case
This commit is contained in:
parent
19416ef10c
commit
97d1e0783b
3 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
var net = require('net'),
|
var net = require('net'),
|
||||||
tls = require('tls'),
|
tls = require('tls'),
|
||||||
eventParser = require('../lib/eventParser.js'),
|
eventParser = require('../lib/eventParser.js'),
|
||||||
pubsub = require('event-pubsub'),
|
Pubsub = require('event-pubsub'),
|
||||||
Message = require('js-message'),
|
Message = require('js-message'),
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
Queue = require('js-queue');
|
Queue = require('js-queue');
|
||||||
|
@ -16,7 +16,7 @@ function init(config,log){
|
||||||
log : log,
|
log : log,
|
||||||
retriesRemaining:config.maxRetries||0
|
retriesRemaining:config.maxRetries||0
|
||||||
}
|
}
|
||||||
new pubsub(client);
|
new Pubsub(client);
|
||||||
|
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ var net = require('net'),
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
dgram = require('dgram'),
|
dgram = require('dgram'),
|
||||||
eventParser = require('../lib/eventParser.js'),
|
eventParser = require('../lib/eventParser.js'),
|
||||||
pubsub = require('event-pubsub'),
|
Pubsub = require('event-pubsub'),
|
||||||
Message = require('js-message');
|
Message = require('js-message');
|
||||||
|
|
||||||
function emit(socket, type, data){
|
function emit(socket, type, data){
|
||||||
|
@ -327,7 +327,7 @@ function init(path,config,log,port){
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
new pubsub(server);
|
new Pubsub(server);
|
||||||
|
|
||||||
server.on(
|
server.on(
|
||||||
'close',
|
'close',
|
||||||
|
|
|
@ -2,7 +2,6 @@ var os = require('os'),
|
||||||
dns = require('dns'),
|
dns = require('dns'),
|
||||||
util = require('util'),
|
util = require('util'),
|
||||||
colors = require('colors'),
|
colors = require('colors'),
|
||||||
pubsub = require('event-pubsub'),
|
|
||||||
eventParser = require('./lib/eventParser.js'),
|
eventParser = require('./lib/eventParser.js'),
|
||||||
Client = require('./lib/client.js'),
|
Client = require('./lib/client.js'),
|
||||||
Server = require('./lib/socketServer.js');
|
Server = require('./lib/socketServer.js');
|
||||||
|
|
Loading…
Reference in a new issue