A sophisticated WebSocket management tool providing automated recovery through exponential backoff, jittered retries, and circuit breaker patterns.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install websocket-reconnect
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install websocket-reconnect using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The WebSocket Reconnect skill is a professional-grade connection manager designed to handle the complexities of real-time communication in distributed environments. It solves the problem of unstable network connections by implementing intelligent retry logic, ensuring that your AI agents and applications stay synchronized with their data sources. By utilizing this within the Openclaw Skills ecosystem, developers can focus on core logic while the skill handles the intricacies of network failure recovery and connection state management.
This skill goes beyond simple retries by incorporating random jitter to prevent thundering herd issues and a circuit breaker pattern to stop cascading failures. It is highly configurable, allowing for fine-tuned control over heartbeat intervals, timeout thresholds, and backoff multipliers, making it suitable for everything from high-frequency trading feeds to casual chat interfaces.
First, ensure you have the necessary dependencies installed in your environment:
npm install ws
To integrate the skill into your project, use the following initialization pattern:
const { WebSocketReconnect } = require('./scripts/websocket-reconnect.js');
const ws = new WebSocketReconnect({
url: 'wss://api.your-service.com',
maxRetries: 10,
baseDelay: 1000
});
ws.connect();
The skill manages connection health through a robust state machine and provides telemetry via the getStats() method.
| Attribute | Type | Description |
|---|---|---|
| state | String | The current connection status (CONNECTING, OPEN, CLOSING, CLOSED, BLOCKED, FAILED) |
| circuitState | String | The circuit breaker status (CLOSED, OPEN, HALF-OPEN) |
| retryCount | Number | The number of consecutive retry attempts made |
| lastActivity | Timestamp | The Unix timestamp of the last successful message or heartbeat |
Loading
A robust HTTP client extension for Openclaw Skills that implements exponential backoff retries and circuit breaker patterns to drastically reduce API failure rates.

Eliminate N+1 query overhead by batching and caching database or API requests into efficient single operations.

A terminal automation skill that launches Claude Code and automatically enables Remote Control for seamless multi-device coding sessions.

An identity-aware debate engine that orchestrates multi-architecture AI discourse through structured identity graphs and persistent thread tracking.

A powerful Model Context Protocol skill for retrieving formatted system time, managing global timezones, and calculating precise time intervals.

ATXP provides a unified infrastructure for AI agents to manage identity, fund wallets, and access a suite of paid API tools including web search and media generation.








































