Skip to content

feat: WebSocket auto-reconnect with backoff #5

@kagura-agent

Description

@kagura-agent

Problem

If the server restarts, the frontend stays disconnected until manual refresh.

Solution

Implement reconnect logic in useWebSocket hook with exponential backoff.

Acceptance Criteria

  • Auto-reconnect on disconnect
  • Exponential backoff (1s, 2s, 4s, max 30s)
  • Visual indicator during reconnection
  • Re-fetch room/agent list on reconnect

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions