Showing 2 of 14 total issues
File test.js
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var assert = require('assert');
var sinon = require('sinon');
if(typeof WebSocket === 'undefined') {
var ws = require('ws');
Function PersistentWS
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
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