WebSocket Protocol

Real-time communication protocol for the QNTX web interface.

Endpoints

PathPurpose
/wsMain WebSocket (graph updates, job status, logs)
/lspATS Language Server Protocol (completions, hover)

Message Types

All messages are JSON objects with a type field indicating the message type.

Client → Server

query

Execute an ATS query

FieldDescription
queryATS query string
lineCursor line position
cursorCursor column position
filenameSource file name

Server → Client

job_update

Async job status update

FieldDescription
jobJob object with status, progress, etc.
metadataAdditional metadata about the update

daemon_status

Pulse daemon status broadcast

FieldDescription
runningWhether daemon is running
active_jobsNumber of active jobs
load_percentCurrent load percentage

usage_update

AI usage statistics update

FieldDescription
total_costTotal cost in USD
requestsNumber of requests
tokensTotal tokens used

llm_stream

Streaming LLM response chunks

FieldDescription
job_idAssociated job ID
contentText content chunk
doneWhether streaming is complete

plugin_health

Plugin health status update

FieldDescription
namePlugin name
healthyHealth status
statePlugin state (running/paused)

Type References

Full message type definitions are in Server Types.

← Back to API Index