socketstream/socketstream

View on GitHub
lib/request/responders/rpc/index.js

Summary

Maintainability
C
7 hrs
Test Coverage

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

module.exports = function(responderId, config, ss) {
  var code, name;
  name = config && config.name || 'rpc';

  // Serve client code  
Severity: Major
Found in lib/request/responders/rpc/index.js - About 3 hrs to fix

    Function interfaces has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        interfaces: function(middleware) {
    
          // Get request handler      
          var request;
          request = require('./request')(ss, middleware);
    Severity: Major
    Found in lib/request/responders/rpc/index.js - About 2 hrs to fix

      Function websocket has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              websocket: function(msg, meta, send) {
                var handleError, msgLogName, req;
      
                // RPC responder uses JSON both ways          
                msg = JSON.parse(msg);
      Severity: Minor
      Found in lib/request/responders/rpc/index.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status