# react-use-websocket — card for AI agents

React hook for WebSocket connections.

Category: HTTP clients and networking · npm package `react-use-websocket` · latest version 4.13.0 (checked 2026-11-01)
Install: `npm install react-use-websocket`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 43.5 (#2719 of all tools, 86 of 126 in its category)
- Used in 1 public projects set up for AI coding agents (0.0%)
- Downloads last week: 933,850 (as of 2026-11-24), +58.8% over 4 weeks
- GitHub stars: 1,879 (as of 2026-11-24)
- Last push: 2025-02-04

## Often used with
React 100.0%, Emotion 66.7%, cors 66.7%, Recharts 66.7%, Next.js 66.7%, Metaplex 55.6%

## Links
- AgentGid page: https://agentgid.com/tools/react-use-websocket/
- Homepage: https://github.com/robtaussig/react-use-websocket#readme
- Repository: https://github.com/robtaussig/react-use-websocket

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
