frontend/js/modules/websocket/services.js
File services.js
has 440 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
angular.module('op.websocket')
.factory('IoAction', ['$timeout', function($timeout) {
function getNgCallback(callback) {
Function ioInterface
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ioInterface(callback) {
var ioAction = new IoAction();
var terminate = {
emit: emit,
Function on
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function(event, callback) {
if (!room) {
client.on(event, callback);
$log.debug(namespace + ' : subscribed');