Densaugeo/PersistentWS

View on GitHub

Showing 2 of 14 total issues

File test.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var assert = require('assert');
var sinon = require('sinon');

if(typeof WebSocket === 'undefined') {
  var ws = require('ws');
Severity: Minor
Found in test/test.js - About 4 hrs to fix

    Function PersistentWS has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var PersistentWS = function PersistentWS(url, protocols, options) {
        var self = this;
        
        // @prop Boolean verbose -- log info about connections and disconnections
        // @option Boolean verbose -- Sets .verbose
    Severity: Major
    Found in PersistentWS.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language