Skip to content

feat: WebSocket heartbeat and idle disconnects#26

Open
Nexussyn wants to merge 6 commits into
GautamKumarOffical:mainfrom
Nexussyn:feat/issue-10-websocket-heartbeat
Open

feat: WebSocket heartbeat and idle disconnects#26
Nexussyn wants to merge 6 commits into
GautamKumarOffical:mainfrom
Nexussyn:feat/issue-10-websocket-heartbeat

Conversation

@Nexussyn

Copy link
Copy Markdown

Summary

Implements WebSocket heartbeat functionality with:

  • Configurable heartbeat interval via WS_HEARTBEAT_INTERVAL_SECS env var (default 30s)
  • Idle connections closed after 2x heartbeat interval without pong response
  • Track active connection count and last pong timestamp per connection
  • Health endpoint includes active_ws and heartbeat_secs fields
  • Comprehensive tests covering heartbeat behavior

Closes #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.

Bounty Claim: WebSocket heartbeat and idle disconnects ($70)

1 participant