socketstream/socketstream

View on GitHub
lib/websocket/transports/engineio/wrapper.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function exports has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(serverStatus, message, config){

  if (JSON.stringify(config) === '{}') {
    config = { 
        secure  : document.location.protocol === "https:"
Severity: Major
Found in lib/websocket/transports/engineio/wrapper.js - About 2 hrs to fix

    Function connect has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        connect: function(){
          var sock = new eio.Socket(config);
    
          sock.on('message', function(e) {
            var i, x, msg = e;
    Severity: Minor
    Found in lib/websocket/transports/engineio/wrapper.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status