Overview
Orphelix uses Server-Sent Events (SSE) for real-time updates instead of WebSocket. This provides automatic reconnection and simpler implementation.SSE Endpoint
namespace: Required - namespace to watchcontext: Optional - kubeconfig context
Event Types
Connected
Initial connection established.Heartbeat
Keep-alive ping every 30 seconds.Deployment
Deployment change (ADDED, MODIFIED, DELETED).Pod
Pod change.Event
Kubernetes event.Error
Watch error or connection issue.Client Implementation
JavaScript (Native)
React Hook
Advantages of SSE
Simpler Protocol
Simpler Protocol
HTTP-based, no special server setup required
Auto-Reconnection
Auto-Reconnection
Browser automatically reconnects on disconnect
One-Way Communication
One-Way Communication
Perfect for monitoring (server → client only)
Built-in Browser Support
Built-in Browser Support
Native EventSource API, no library needed