Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ping() returns always 'PONG' #1349

Open
arditsinani opened this issue Jul 9, 2024 · 0 comments
Open

.ping() returns always 'PONG' #1349

arditsinani opened this issue Jul 9, 2024 · 0 comments

Comments

@arditsinani
Copy link

I am trying to implement a healthCheck route on top of ioredis client. I am doing also tests for it like:
async healthCheck(): Promise<HealthCheck> { try { await this.client.ping(); return HealthCheck.UP; } catch (_e) { return HealthCheck.DOWN; } }
The issue with .ping() is that always returns 'PONG' even though I have called client.disconnect()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant