Real-Time Events
Igris provides a Server-Sent Events (SSE) endpoint that streams real-time events to connected clients. The dashboard uses this for live updates, and you can connect your own clients for monitoring and alerting.SSE Endpoint
Connecting
Browser (EventSource)
curl
Event Types
connected
Emitted immediately after the SSE connection is established, confirming the stream is live.
heartbeat
Sent every 30 seconds to keep the connection alive.
tool_call
Emitted when a tool call is processed by the proxy.
anomaly
Emitted when anomaly detection triggers an alert.
llm_call
Emitted when a request is processed by the LLM gateway.
llm_anomaly
Emitted when the LLM anomaly detector fires on a gateway request.
Session suspension does not emit an SSE event. When a session is suspended via the kill switch, a
session_suspended webhook is dispatched to any registered webhook endpoints. There is no session_update SSE event.Infrastructure
SSE events are delivered directly to in-process org listeners — theemitEvent function looks up registered callbacks for the org and calls them synchronously. Igris also publishes to an Upstash Redis channel (igris:events) as a fire-and-forget side-channel; however, the API does not maintain a Redis subscriber loop, so cross-instance fan-out relies on in-process delivery. Clients connected to the same API instance as the event source receive events reliably.