tag
websockets
2 posts.
-
Your stream resume fires before it knows the server restarted
After a server restart, a WebSocket resume sent on socket open replays stale cursors and silently drops text. The fix: resume only after the handshake names the process.
-
Stream resume cursors don't survive a server restart
After a restart, an in-memory replay buffer is gone but clients still resume against it. Seq dedupe silently drops text. Reject foreign cursors by epoch.