(
type: PubSubType,
channels: string | Array<string>,
listener: PubSubListener<T>,
returnBuffers?: T,
)
| 374 | } |
| 375 | |
| 376 | subscribe<T extends boolean>( |
| 377 | type: PubSubType, |
| 378 | channels: string | Array<string>, |
| 379 | listener: PubSubListener<T>, |
| 380 | returnBuffers?: T, |
| 381 | ) { |
| 382 | const command = this.#pubSub.subscribe( |
| 383 | type, |
| 384 | channels, |
| 385 | listener, |
| 386 | returnBuffers, |
| 387 | ); |
| 388 | if (!command) return; |
| 389 | |
| 390 | this.#setupPubSubHandler(); |
| 391 | return this.#addPubSubCommand(command); |
| 392 | } |
| 393 | |
| 394 | #resetDecoderCallbacks() { |
| 395 | this.decoder.onReply = ((reply) => |
nothing calls this directly
no test coverage detected