9 months ago
d40cff7Per CLAUDE.md requirement: "Update docs/websocket-protocol.md with the new message format, fields, example JSON, and where it fits in the flow." Added: - cancel (client → server): abort the running agent turn - ping (client → server): lightweight keepalive, no sessionId required - pong (server → client): keepalive response, sessionId always "" - Updated connection section: replaced "no heartbeat" with ping/pong note - Added Cancel In-Flight Turn flow example - Added Keepalive Ping/Pong flow example Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parentc76f8e5