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'),
|
||||
tls = require('tls'),
|
||||
eventParser = require('../lib/eventParser.js'),
|
||||
pubsub = require('event-pubsub'),
|
||||
Pubsub = require('event-pubsub'),
|
||||
Message = require('js-message'),
|
||||
fs = require('fs'),
|
||||
Queue = require('js-queue');
|
||||
|
@ -16,7 +16,7 @@ function init(config,log){
|
|||
log : log,
|
||||
retriesRemaining:config.maxRetries||0
|
||||
}
|
||||
new pubsub(client);
|
||||
new Pubsub(client);
|
||||
|
||||
return client;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ var net = require('net'),
|
|||
fs = require('fs'),
|
||||
dgram = require('dgram'),
|
||||
eventParser = require('../lib/eventParser.js'),
|
||||
pubsub = require('event-pubsub'),
|
||||
Pubsub = require('event-pubsub'),
|
||||
Message = require('js-message');
|
||||
|
||||
function emit(socket, type, data){
|
||||
|
@ -327,7 +327,7 @@ function init(path,config,log,port){
|
|||
}
|
||||
};
|
||||
|
||||
new pubsub(server);
|
||||
new Pubsub(server);
|
||||
|
||||
server.on(
|
||||
'close',
|
||||
|
|
|
@ -2,7 +2,6 @@ var os = require('os'),
|
|||
dns = require('dns'),
|
||||
util = require('util'),
|
||||
colors = require('colors'),
|
||||
pubsub = require('event-pubsub'),
|
||||
eventParser = require('./lib/eventParser.js'),
|
||||
Client = require('./lib/client.js'),
|
||||
Server = require('./lib/socketServer.js');
|
||||
|
|
Loading…
Reference in a new issue