MCPcopy
hub / github.com/redis/node-redis / #updateIsActive

Method #updateIsActive

packages/client/lib/client/pub-sub.ts:321–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319 }
320
321 #updateIsActive() {
322 this.#isActive = (
323 this.listeners[PUBSUB_TYPE.CHANNELS].size !== 0 ||
324 this.listeners[PUBSUB_TYPE.PATTERNS].size !== 0 ||
325 this.listeners[PUBSUB_TYPE.SHARDED].size !== 0 ||
326 this.#subscribing !== 0
327 );
328 }
329
330 reset() {
331 this.#isActive = false;

Callers 7

subscribeMethod · 0.95
extendTypeListenersMethod · 0.95
#unsubscribeCommandMethod · 0.95
removeAllListenersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected