diff --git a/lib/db/redis.ts b/lib/db/redis.ts index 7d6d76e..13bface 100755 --- a/lib/db/redis.ts +++ b/lib/db/redis.ts @@ -6,6 +6,8 @@ export const redis = ? new Bun.RedisClient(undefined, { maxRetries: 0xffffffff }) : null; +if (redis) redis.onclose = () => setTimeout(redis.connect, 5000); + type PubPayload = { event?: string; data: unknown }; export class PubSubManager {