robtaussig/react-use-websocket
React Hook for WebSocket communication observed · 2026-08-28
Health v2 · maintenance only
25/100
- Activity 5
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2678
- days_rel: n/a
- days_push: 575
- n_releases_24m: 0
Adoption not part of the score
1886 stars · 155 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React Hook library that provides robust WebSocket integration for React components, with features like automatic reconnection, JSON message handling, and ready-state tracking. It also offers experimental SocketIO support.
Use cases
- connect to a websocket from a react component
- handle real-time messages in react
- auto-reconnect websocket in react app
- send and receive json over websocket in react
- track websocket connection status in ui
- use socketio with react hooks
When to choose
- you need declarative WebSocket usage inside React function components
- you want built-in reconnection, heartbeats, and JSON message helpers
- you want a small, focused hook rather than a full state-management solution
When to avoid
- you are not using React
- you need full Socket.IO protocol support (only experimental)
- you need server-side WebSocket handling rather than a client hook
Facets
library · maturity active
websocket http-client state-management web-development frontend browser react-hooks websocket-client real-time-communication socketio real-time nodejs web-server
2 sources
- readme: https://github.com/robtaussig/react-use-websocket · fetched 2026-08-28 · f1660bfea113
- registry_npm: https://registry.npmjs.org/react-use-websocket · fetched 2026-08-29 · d45a4d71e8fc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| robtaussig/react-use-websocket | main | 25 |
For agents
markdown · JSON · MCP: product_card(name="robtaussig/react-use-websocket")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem