nitrotasks/nitro-server

View on GitHub
lib/controllers/websockets.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

const connection = function(ws, req) {
  const location = url.parse(req.url, true)
  // should probs not be hardcoded???
  if (
    (location.pathname !== '/a/ws' && location.pathname !== '/ws') ||
Severity: Major
Found in lib/controllers/websockets.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status