Gracefully terminates all pending requests and releases Redis subscriptions. Recommended during application teardown to prevent memory leaks.
Mounts the active Redis connection to listen for incoming requests and responses. Must be called prior to sending or receiving any RPC. *
The Redis client dedicated to Pub/Sub subscriptions.
Registers an asynchronous handler to process incoming requests of a specific type. *
The specific request pattern type.
The request identifier to listen for.
The callback executed when the request is received.
Dispatches a typed request to the network and waits for the corresponding response. *
The specific request pattern type.
The unique identifier of the request.
The strongly typed data to send.
The Redis client used strictly for publishing.
A promise resolving to the strongly typed response data.
Handles synchronous request/response (RPC) communication via Redis Pub/Sub. Automatically manages correlation IDs, timeouts, subscription lifecycle, and error routing. *
Example