src/serverPublisher.js
Function Publisher
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Publisher = function(express, db) {
var clients = [];
// Write data to all connected clients
var distribute = function(data) {
Function openCursor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var openCursor = function(cb) {
var loadCollection = function(cbb) {
db.collection('pubsub', {strict: true}, function(err, pubsub) {
if(err) {