SSE Streaming
Server-sent events (SSE) provide real-time streaming of data from Kubiya agent servers.Overview
SSE allows servers to push data to clients in real-time, perfect for:- Live workflow execution updates
- Real-time tool execution results
- Progress notifications
- Error streaming
Implementation
Server-Side Setup
Client-Side Usage
Event Types
Status Events
Result Events
Error Events
Configuration
Server Configuration
Client Configuration
Best Practices
- Connection Management: Implement proper connection cleanup
- Error Handling: Handle network errors gracefully
- Rate Limiting: Prevent event spam
- Authentication: Secure streaming endpoints