(commands: PubSubCommand[], type: string, listeners: PubSubTypeListeners)
| 350 | } |
| 351 | |
| 352 | #normalResubscribe(commands: PubSubCommand[], type: string, listeners: PubSubTypeListeners) { |
| 353 | this.#subscribing++; |
| 354 | const callback = () => this.#subscribing--; |
| 355 | commands.push({ |
| 356 | args: [ |
| 357 | COMMANDS[type as PubSubType].subscribe, |
| 358 | ...listeners.keys() |
| 359 | ], |
| 360 | channelsCounter: listeners.size, |
| 361 | resolve: callback, |
| 362 | reject: callback |
| 363 | }); |
| 364 | } |
| 365 | |
| 366 | #shardedResubscribe(commands: PubSubCommand[], listeners: PubSubTypeListeners) { |
| 367 | const callback = () => this.#subscribing--; |
no test coverage detected