# pladaria/reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)

Repository: https://github.com/pladaria/reconnecting-websocket
Canonical: https://ross.abutalabs.com/products/pladaria-reconnecting-websocket
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2023-06-15T17:25:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3716, "days_push": 1175, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1313, forks 206 (observed 2026-08-28T04:04:20.350439+00:00)

## What it is
A drop-in WebSocket client library that automatically reconnects when the connection closes, with a fully WebSocket-API-compatible interface. It supports Web, Service Workers, Node.js, and React Native, with configurable retry delays, connection timeouts, URL rotation, and message buffering.

## Use cases
- keep a websocket connection alive with automatic reconnection
- buffer messages sent while the socket is disconnected and flush them on reconnect
- rotate or change the websocket server url between reconnection attempts
- use websockets in react native or node.js with the same browser api
- handle connection timeouts and retry limits for flaky networks

## When to choose
- you need a drop-in replacement for the native WebSocket API with reconnection built in
- you target multiple platforms (browser, Node.js, React Native) with one dependency-free library
- you need configurable backoff, retry limits, or dynamic URL providers

## When to avoid
- you need a full realtime framework with pub/sub, presence, or fallback transports (e.g. Socket.IO)
- your environment already provides reconnection at the protocol or proxy level
- the project appears to be in maintenance mode with infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, http-client, middleware
- domain: web-development, networking, developer-tools
- platform: browser, cross-platform
- tags: reconnecting-websocket, websocket-client, auto-reconnect, react-native, typescript, dependency-free, real-time, nodejs

## Member repositories
- pladaria/reconnecting-websocket (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.350439+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:48:55.688923+00:00, confidence not recorded.
  - readme: https://github.com/pladaria/reconnecting-websocket (fetched 2026-08-28T04:04:20.350439+00:00, sha f34bc1b20eec)
  - registry_npm: https://registry.npmjs.org/reconnecting-websocket (fetched 2026-08-29T12:07:46.029098+00:00, sha 35595269a7a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
