Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

docs: update websocket-protocol.md with cancel, ping/pong messages

9 months ago

d40cff7
Authored
mweinbach2/10/2026, 1:04:36 AM
Per 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

1 file changed
  • docs/websocket-protocol.md+46−1