1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix #2205 - reject commands in connect phase when disableOfflineQueue is true

This commit is contained in:
Leibale Eidelman
2022-11-16 16:27:36 -05:00
parent d09732280b
commit e5532706cf
3 changed files with 28 additions and 6 deletions

View File

@@ -22,6 +22,12 @@ export class ClientClosedError extends Error {
}
}
export class ClientOfflineError extends Error {
constructor() {
super('The client is offline');
}
}
export class DisconnectsClientError extends Error {
constructor() {
super('Disconnects client');