homarr-labs / homarr

Detected the use of classes as namespaces JS-0327
Anti-pattern
Major
2 months ago7 months old
Unexpected class with only static properties
14 * It fixes a potential memory leak where the redis client would keep creating new subscriptions to the same channel.
15 * @see https://github.com/homarr-labs/homarr/issues/744
16 */
17export class ChannelSubscriptionTracker {18  private static subscriptions = new Map<string, Map<string, SubscriptionCallback>>();
19  private static redis = createRedisConnection();
20  private static listenerActive = false;
Unexpected class with only static properties
14 * It fixes a potential memory leak where the redis client would keep creating new subscriptions to the same channel.
15 * @see https://github.com/homarr-labs/homarr/issues/744
16 */
17export class ChannelSubscriptionTracker {18  private static subscriptions = new Map<string, Map<string, SubscriptionCallback>>();
19  private static redis = createRedisConnection();
20  private static listenerActive = false;
Unexpected class with only static properties
14 * It fixes a potential memory leak where the redis client would keep creating new subscriptions to the same channel.
15 * @see https://github.com/homarr-labs/homarr/issues/744
16 */
17export class ChannelSubscriptionTracker {18  private static subscriptions = new Map<string, Map<string, SubscriptionCallback>>();
19  private static redis = createRedisConnection();
20  private static listenerActive = false;
Unexpected class with only static properties
14 * It fixes a potential memory leak where the redis client would keep creating new subscriptions to the same channel.
15 * @see https://github.com/homarr-labs/homarr/issues/744
16 */
17export class ChannelSubscriptionTracker {18  private static subscriptions = new Map<string, Map<string, SubscriptionCallback>>();
19  private static redis = createRedisConnection();
20  private static listenerActive = false;
Unexpected class with only static properties
14 * It fixes a potential memory leak where the redis client would keep creating new subscriptions to the same channel.
15 * @see https://github.com/homarr-labs/homarr/issues/744
16 */
17export class ChannelSubscriptionTracker {18  private static subscriptions = new Map<string, Map<string, SubscriptionCallback>>();
19  private static redis = createRedisConnection();
20  private static listenerActive = false;