> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Runbook · WSS Connection Issues

> Stabilize WebSocket connections and interpret close codes.

<Steps>
  <Step title="Validate URL and TLS">
    Confirm the WSS endpoint, chain/stream, and TLS (wss\://) are correct.
  </Step>

  <Step title="Implement exponential backoff">
    Use 1s, 2s, 4s, 8s (max 30s), and add jitter to reduce thundering herd.
  </Step>

  <Step title="Authenticate promptly">
    Send any required auth message immediately after connect to avoid policy timeouts (1008).
  </Step>

  <Step title="Review close code">
    See <a href="/troubleshooting/error-codes/wss/home">WSS error codes</a> for guidance and actions.
  </Step>
</Steps>
