corrected pubsub constructor case

This commit is contained in:
Brandon Nozaki Miller 2016-01-10 03:53:33 -08:00
parent 19416ef10c
commit 97d1e0783b
3 changed files with 4 additions and 5 deletions

View file

@ -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;
}

View file

@ -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',

View file

@ -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');