Skip to content

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

Description

@GautamKumarOffical

Bounty Claim

Original Issue: lobster-trap/hammer-and-nail#334
Amount: $70
PR: lobster-trap/hammer-and-nail#359

Changes Made

  • 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
  • 9 passing tests covering config, heartbeat, idle disconnect, and health endpoint
  • Documentation added to docs/OPERATIONS.md

Validation

  • go test ./ws/ -v — all 9 tests pass
  • python3 build.py — diagnostic artifacts generated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions