lib/controllers/websockets.js
Function connection
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
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') ||