Skip to content

Commit c9db503

Browse files
committed
fix: construct IORedis with strings
`new IORedis('redis://localhost:6379/')` is a valid way to construct an IORedis client. https://github.com/luin/ioredis#connect-to-redis
1 parent 5926b49 commit c9db503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redis-pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type RedisClient = Redis | Cluster;
66
type OnMessage<T> = (message: T) => void;
77

88
export interface PubSubRedisOptions {
9-
connection?: RedisOptions;
9+
connection?: RedisOptions | string;
1010
triggerTransform?: TriggerTransform;
1111
connectionListener?: (err: Error) => void;
1212
publisher?: RedisClient;

0 commit comments

Comments
 (0)