websocket forked from zzstoatzz.io/websocket.zig

add readLoopWithHeartbeat: merged keepalive + read in single task

read() now returns null on WouldBlock (SO_RCVTIMEO fired), letting callers decide what to do. readLoopWithHeartbeat() uses this to send pings on idle intervals and close after max_failures consecutive timeouts — eliminating the need for a separate ping task/thread. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>


Author zzstoatzz Co-author Claude Opus 4.6 Date Commit Parent 104608ba
+73 -1
1 changed file
+73 -1
1 changed file