Skip to content

ping ​

ping is the heartbeat event used by either side to confirm that the websocket session is still alive.

Event TypeFlow Direction
pingBoth directions

Data Definition ​

ts
interface PingMessage {
  type: 'ping'
  timestamp: number
}

Examples ​

  • Server heartbeat
json
{
  "type": "ping",
  "timestamp": 1760000000000
}
  • Client heartbeat
json
{
  "type": "ping",
  "timestamp": 1760000025000
}

Model Drive Protocol