Skip to content

Add WebSocket reconnection with backoff #6

@TheStack-ai

Description

@TheStack-ai

Context

The orb connects to the brain via WebSocket. If the connection drops, the orb should reconnect automatically with exponential backoff.

What to do

Implement reconnection logic in the orb's WebSocket client:

  1. Detect disconnection
  2. Retry with exponential backoff (1s, 2s, 4s, 8s, max 30s)
  3. Show connection status in the UI

Files to modify

  • orb/src/ (WebSocket client)

Difficulty: Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions