Package
react-use-websocket
React Hook for WebSocket communication
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 369.9k
- +32% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v4.13.0
- GitHub stars
- 1.9k
- 155 forks
- Open issues / PRs
- 79 / 16
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
369,932 downloads last week, 1,766,971 in the last month. The 12-month change of +32% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 098 in total
- Latest version
- 4.13.0, 4 Feb 20251 year ago
- First published
- 4 May 2019
- Last push to GitHub
- 4 Feb 2025598 days before the snapshot
- Repository archived
- No
- Open issues
- 79
- Open pull requests
- 16
- Commits, last 52 weeks
- 0
- Dependents on npm
- 131
Major versions
- v4 first release 4.0.0, 27 Apr 2022
- v3 first release 3.0.0, 6 Feb 2022
- v2 first release 2.0.0, 1 May 2020
- v1 first release 1.0.0, 13 Nov 2019
- v0 first release 0.1.0, 4 May 2019
Recent releases
| Version | Published |
|---|---|
| 4.13.0 | 4 Feb 2025 |
| 4.12.0 | 31 Jan 2025 |
| 4.11.1 | 18 Nov 2024 |
| 4.11.0 | 17 Nov 2024 |
| 4.10.1 | 31 Oct 2024 |
| 4.10.0 | 22 Oct 2024 |
| 4.9.0 | 1 Oct 2024 |
| 4.8.1 | 28 Feb 2024 |
| 4.8.0 | 28 Feb 2024 |
| 4.7.0 | 11 Feb 2024 |
| 4.6.0 | 11 Feb 2024 |
| 4.5.0 | 28 Sept 2023 |
| 4.4.0 | 5 Sept 2023 |
| 4.3.1 | 10 Feb 2023 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 196 kB
- Dependencies (0)
- None
npm install react-use-websocket- jsDelivr
https://cdn.jsdelivr.net/npm/react-use-websocket@4.13.0/ - unpkg
https://unpkg.com/react-use-websocket@4.13.0/ - esm.sh
https://esm.sh/react-use-websocket@4.13.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| react-use-websocket-lite | 11k | - | 3 months ago | ESM only | - |
| sockjs | 13.9m | - | 4 years ago | CommonJS | - |
| sockjs-client | 4.2m | - | 4 years ago | CommonJS | - |
| react-stomp | 5.1k | - | 5 years ago | CommonJS | - |
Indexability: Indexed.