Documentation Index
Fetch the complete documentation index at: https://docs.illa.io/llms.txt
Use this file to discover all available pages before exploring further.
TelemetryClient connects to a telemetry SSE endpoint and emits typed telemetry events.
Use it only when your deployment exposes a dedicated ${baseUrl}/telemetry/{requestId} stream.
Constructor
Methods
connect(requestId: string): void
Connects to ${baseUrl}/telemetry/{requestId}.
disconnect(): void
Closes the active EventSource connection.
State helpers
isConnectedisCompleteTelemetryClient.getPhaseFromEvent(event)TelemetryClient.getPhaseLabel(phase)TelemetryClient.isTerminalEvent(type)
Example
Environment note
TelemetryClient depends on EventSource. In Node.js, provide an EventSource polyfill before use.