Skip to content

robtaussig/react-use-websocket

View on GitHub ↗Related repositories →

React Query-Like Hook for WebSocket communication with Caching support

TypeScript · active 2023-08-152026-04-27 (UTC)

Complete coverage26,393 / 26,393 hourly files (100%) · 2 absent upstream2023-08-152026-08-18 (UTC)
Events
1.1K
Pushes
23
Pull requests
30
Issues
76
Stars
662
Forks
60

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

ContributorContributionsPushesPRsComments
robtaussig118211455
w666210414
buhln120010
Arbarwings11215
michaelboyles7034
gandhis16006
danielmcmillan6005
csvan5004
nemonemi5004
Vlix4002
scottdickerson4001
denvudd4003
darkhaniop4012
yubinjodev4001
levino3003
ewilliams-zoot3003
lightrow3003
DerCed3001
ZacharyACoon3001
daigang12283003

Recent activity

Latest issues, pull requests and releases

  • Issue comment#270jambsik2025-10-17 09:08
    Heartbeat does not work when timeout < interval
  • Issue#278bchilcott2025-09-26 02:57
    Add sendMessage as a parameter of the onOpen handler
  • Issue comment#211michaelboyles2025-09-05 19:21
    Rationale for using flushSync?
  • Issue comment#256aafloy2025-09-05 19:09
    Does react-use-websocket run on React 19?
  • Issue#276justplayd2025-08-01 09:07
    reconnect to socket on mobile
  • Issue comment#260deeseeker2025-07-10 11:58
    Connection does not close after the timeout expired
  • Issue comment#273happier22025-06-20 10:27
    Socket closes when tab is in background – is ping/pong paused?
  • Issue comment#273happier22025-06-20 08:10
    Socket closes when tab is in background – is ping/pong paused?
  • Issue comment#241hieucchu-eh2025-06-06 04:42
    Informational question: what might cause assertIsWebsocket to start failing?
  • Pull request#274joaoseixas882025-06-05 22:56
  • Issue comment#94lpegs2025-05-23 13:18
    Recommended way to pass authorization tokens when using react-use-websocket?
  • Issue comment#92fedeverdi2025-05-19 19:50
    Handle exceeding AWS max connection duration
  • Issue comment#258PrakashC12025-05-17 11:50
    Add null to lastJsonMessage type
  • Issue comment#273yasmanets2025-05-15 09:29
    Socket closes when tab is in background – is ping/pong paused?
  • Issue#273yasmanets2025-05-14 11:06
    Socket closes when tab is in background – is ping/pong paused?
  • Pull request#271Eric1622025-05-09 16:16
  • Issue#270zehawki2025-05-03 14:57
    Heartbeat does not work when timeout < interval
  • Issue comment#269scottdickerson2025-05-01 15:59
    Heartbeat timeout does not reset when the Websocket connection closes and reopens
  • Issue#269scottdickerson2025-05-01 15:59
    Heartbeat timeout does not reset when the Websocket connection closes and reopens
  • Issue#269scottdickerson2025-05-01 15:31
    Heartbeat timeout does not reset when the Websocket connection closes and reopens
  • Issue#268sgrund142025-04-25 22:00
    Multiple heartbeats when using `share: true`
  • Issue comment#233zehawki2025-04-15 13:56
    heartbeat seems not working as expected
  • Issue comment#265darkhaniop2025-04-08 07:48
    Bugs in the example implementation: messageHistory state definition and markup
  • Issue#267BLazzeD212025-04-02 20:40
    Catch errors when sendJsonMessage
  • Issue comment#263dhulme2025-03-31 08:51
    react-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.