Comma Agents
@comma-agents/daemonProtocol

Ping / Pong

Keepalive message pair for verifying the WebSocket connection is alive.

The simplest request/response pair. Send ping, receive pong. Use it as a keepalive or to verify the connection is active.

Request: ping

{
  "type": "ping",
  "requestId": "health-check-1"
}
FieldTypeRequiredDescription
type"ping"yesMessage type discriminator
requestIdstringnoEchoed back on the response for correlation

Response: pong

{
  "type": "pong",
  "requestId": "health-check-1",
  "ts": "2025-01-15T10:30:00.000Z"
}
FieldTypeDescription
type"pong"Message type discriminator
requestIdstring?Echoed from the request
tsstringISO-8601 timestamp

On this page