Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
primus.on('disconnection', spark => app.emit('disconnect', getParams(spark)));
}
if (typeof configurer === 'function') {
debug('Calling Primus configuration function');
configurer.call(this, this.primus);
}
resolve(this.primus);
return this._super.apply(this, arguments);
}
}, app);
});
app.configure(commons({
done,
socketMap,
getParams,
emit: 'send'
}));
};
}
io.sockets.setMaxListeners(64);
}
if (typeof config === 'function') {
debug('Calling SocketIO configuration function');
config.call(this, this.io);
}
resolve(this.io);
return this._super.apply(this, arguments);
}
}, app);
});
app.configure(commons({
done,
socketMap,
getParams,
emit: 'emit'
}));
};
}