React Query-Like Hook for WebSocket communication with Caching support
TypeScript · active 2023-08-15 → 2026-04-27 (UTC)
Activity over time
Daily event counts in the loaded window
Line chart, 987 days from 2023-08-15 to 2026-04-27. Pushes: 23 total, peak 7 in a day. Pull requests: 30 total, peak 6 in a day. Issues: 76 total, peak 5 in a day. Comments: 216 total, peak 13 in a day. Stars: 662 total, peak 4 in a day.
- Pushes
- Pull requests
- Issues
- Comments
- Stars
Stars, PRs, issues and forks are under-captured in the later part of this window. GH Archive progressively stopped capturing non-push events during 2026 — −95% or worse by the end of the window. Every series here except Pushes fades for that reason, so a decline above reflects the archive, not this repository. Pushes stay reliable throughout, so read them, and the contributor counts derived from them, as the real signal. Data health has the measurements.
Top contributors
Pushes, PRs, issues, reviews and comments — stars and forks excluded, so this is contribution rather than popularity
| Contributor | Contributions | Pushes | PRs | Comments |
|---|---|---|---|---|
| robtaussig | 118 | 21 | 14 | 55 |
| w666 | 21 | 0 | 4 | 14 |
| buhln | 12 | 0 | 0 | 10 |
| Arbarwings | 11 | 2 | 1 | 5 |
| michaelboyles | 7 | 0 | 3 | 4 |
| gandhis1 | 6 | 0 | 0 | 6 |
| danielmcmillan | 6 | 0 | 0 | 5 |
| csvan | 5 | 0 | 0 | 4 |
| nemonemi | 5 | 0 | 0 | 4 |
| Vlix | 4 | 0 | 0 | 2 |
| scottdickerson | 4 | 0 | 0 | 1 |
| denvudd | 4 | 0 | 0 | 3 |
| darkhaniop | 4 | 0 | 1 | 2 |
| yubinjodev | 4 | 0 | 0 | 1 |
| levino | 3 | 0 | 0 | 3 |
| ewilliams-zoot | 3 | 0 | 0 | 3 |
| lightrow | 3 | 0 | 0 | 3 |
| DerCed | 3 | 0 | 0 | 1 |
| ZacharyACoon | 3 | 0 | 0 | 1 |
| daigang1228 | 3 | 0 | 0 | 3 |
Recent activity
Latest issues, pull requests and releases
- Issue comment#270jambsik2025-10-17 09:08Heartbeat does not work when timeout < interval
- Issue#278bchilcott2025-09-26 02:57Add sendMessage as a parameter of the onOpen handler
- Issue comment#211michaelboyles2025-09-05 19:21Rationale for using flushSync?
- Issue comment#256aafloy2025-09-05 19:09Does react-use-websocket run on React 19?
- Issue#276justplayd2025-08-01 09:07reconnect to socket on mobile
- Issue comment#260deeseeker2025-07-10 11:58Connection does not close after the timeout expired
- Issue comment#273happier22025-06-20 10:27Socket closes when tab is in background – is ping/pong paused?
- Issue comment#273happier22025-06-20 08:10Socket closes when tab is in background – is ping/pong paused?
- Issue comment#241hieucchu-eh2025-06-06 04:42Informational question: what might cause assertIsWebsocket to start failing?
- Pull request#274joaoseixas882025-06-05 22:56
- Issue comment#94lpegs2025-05-23 13:18Recommended way to pass authorization tokens when using react-use-websocket?
- Issue comment#92fedeverdi2025-05-19 19:50Handle exceeding AWS max connection duration
- Issue comment#258PrakashC12025-05-17 11:50Add null to lastJsonMessage type
- Issue comment#273yasmanets2025-05-15 09:29Socket closes when tab is in background – is ping/pong paused?
- Issue#273yasmanets2025-05-14 11:06Socket closes when tab is in background – is ping/pong paused?
- Pull request#271Eric1622025-05-09 16:16
- Issue#270zehawki2025-05-03 14:57Heartbeat does not work when timeout < interval
- Issue comment#269scottdickerson2025-05-01 15:59Heartbeat timeout does not reset when the Websocket connection closes and reopens
- Issue#269scottdickerson2025-05-01 15:59Heartbeat timeout does not reset when the Websocket connection closes and reopens
- Issue#269scottdickerson2025-05-01 15:31Heartbeat timeout does not reset when the Websocket connection closes and reopens
- Issue#268sgrund142025-04-25 22:00Multiple heartbeats when using `share: true`
- Issue comment#233zehawki2025-04-15 13:56heartbeat seems not working as expected
- Issue comment#265darkhaniop2025-04-08 07:48Bugs in the example implementation: messageHistory state definition and markup
- Issue#267BLazzeD212025-04-02 20:40Catch errors when sendJsonMessage
- Issue comment#263dhulme2025-03-31 08:51react-use-websocket is not compatible with MSWJS
Totals cover only the window loaded into ClickHouse and count events, not GitHub's lifetime totals — 662 stars here means stars gained during the window, not the repo's star count.