metamaps/metamaps

View on GitHub
realtime/junto.js

Summary

Maintainability
A
1 hr
Test Coverage

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

module.exports = function(io, store) {
  io.on('connection', function(socket) {
    socket.on(CHECK_FOR_CALL, function(data) {
      var callInProgress = Object.keys(io.nsps['/'].adapter.rooms[data.room] || {}).length
      if (callInProgress) socket.emit(CALL_IN_PROGRESS)
Severity: Minor
Found in realtime/junto.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status