aboutsummaryrefslogtreecommitdiffstats
path: root/src/format.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-15 13:21:42 -0700
committerAdam Soltys <[email protected]>2026-06-15 13:21:42 -0700
commitadad0731862e6c07e400db010c566c548848d86c (patch)
tree561d0a16804dee14ccbae4dba43d9e5f09c618cf /src/format.js
parent3dd7f8425ecf339332cc44b6f9734b51472d22c1 (diff)
downloadcoinosv3-adad0731862e6c07e400db010c566c548848d86c.tar.gz
coinosv3-adad0731862e6c07e400db010c566c548848d86c.zip
Keep the WebSocket alive: heartbeat + reconnect-on-wake
The mempool WS sends no periodic traffic on a track-addresses-only subscription, so a half-open connection (died without firing onclose) went undetected and updates fell back to the slow poll. Add: - ping every 15s ({action:'ping'} -> pong); if no message for 45s, force a reconnect (handles half-open sockets). - reconnect + refresh on tab refocus (visibilitychange) and network 'online'. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions