We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a34ed commit 898ec7dCopy full SHA for 898ec7d
src/redis-pubsub.ts
@@ -1,13 +1,13 @@
1
-import { RedisOptions, Redis as RedisClient } from 'ioredis';
+import { RedisOptions, Redis as RedisClient, Cluster } from 'ioredis';
2
import { PubSubEngine } from 'graphql-subscriptions';
3
import { PubSubAsyncIterator } from './pubsub-async-iterator';
4
5
export interface PubSubRedisOptions {
6
connection?: RedisOptions;
7
triggerTransform?: TriggerTransform;
8
connectionListener?: (err: Error) => void;
9
- publisher?: RedisClient;
10
- subscriber?: RedisClient;
+ publisher?: RedisClient | Cluster;
+ subscriber?: RedisClient | Cluster;
11
reviver?: Reviver;
12
serializer?: Serializer;
13
deserializer?: Deserializer;
0 commit comments