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

Method #pubSubCommand

packages/client/lib/client/index.ts:1331–1336  ·  view source on GitHub ↗
(promise: Promise<T> | undefined)

Source from the content-addressed store, hash-verified

1329 select = this.SELECT;
1330
1331 #pubSubCommand<T>(promise: Promise<T> | undefined) {
1332 if (promise === undefined) return Promise.resolve();
1333
1334 this.#scheduleWrite();
1335 return promise;
1336 }
1337
1338 SUBSCRIBE<T extends boolean = false>(
1339 channels: string | Array<string>,

Callers 8

SUBSCRIBEMethod · 0.80
UNSUBSCRIBEMethod · 0.80
PSUBSCRIBEMethod · 0.80
PUNSUBSCRIBEMethod · 0.80
SSUBSCRIBEMethod · 0.80
SUNSUBSCRIBEMethod · 0.80
extendPubSubListenersMethod · 0.80

Calls 2

#scheduleWriteMethod · 0.95
resolveMethod · 0.65

Tested by

no test coverage detected