Skip to content

Remove Client(..., on_heartbeat=...), add Client.is_alive(), improve FastStream health check #109

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

Merged
merged 19 commits into from
Mar 24, 2025

Conversation

vrslev
Copy link
Collaborator

@vrslev vrslev commented Mar 24, 2025

  • Add reconnection when server doesn't send heart-beats
  • Add Client.is_alive() to check if server responds
  • Remove on_heartbeat callback: it is not needed anymore
  • Use Client.is_alive in FastStream integration (StompBroker.ping())

I've struggled to add proper tests. Client.is_alive() is fully tested, but reconnection logic — that I couldn't test, sadly.

vrslev added 19 commits March 24, 2025 15:09
…lt` for better heartbeat management and connection lifecycle tracking
@vrslev vrslev self-assigned this Mar 24, 2025
@vrslev vrslev requested review from xfenix, lesnik512 and insani7y March 24, 2025 16:10
@vrslev vrslev merged commit 74d413f into main Mar 24, 2025
5 checks passed
@vrslev vrslev deleted the server-aliveness branch March 24, 2025 16:10
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

Successfully merging this pull request may close these issues.

1 participant