Skip to main content
For file parsing (long PDFs, genetic reports) the server pushes progress to this dedicated channel. No file upload here — the channel is read-only.

Endpoint

wss://mcp.thetahealth.cn/api/ws/file-progress
After connecting, the server validates the token (sent later by the client). Clients keep the channel warm with either ping text or { "type":"heartbeat", "timestamp":... }.

Server → Client events

  • connection_status — accepted / connected / error
  • heartbeat_response — echoed back when client sends heartbeat
  • File-parse events: progress percentages, completion notices, error notices
This is a broadcast channel scoped to the connected user. Use it as a sidecar to upload flows when you want progress visualization without polling.