hybridgroup/cylon-api-socketio

View on GitHub

Showing 1 of 4 total issues

Function _addDefaultListeners has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

SocketMaster.prototype._addDefaultListeners = function(sck, nspRoute, item) {
  var nspSocket = this.nsp[nspRoute];

  sck.on('commands', function() {
    this._emitList(nspSocket, 'commands', _.keys(item.commands));
Severity: Minor
Found in lib/socket-master.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language