Skip to main content

Overview

Orphelix uses Server-Sent Events (SSE) for real-time updates instead of WebSocket. This provides automatic reconnection and simpler implementation.

SSE Endpoint

Query Parameters:
  • namespace: Required - namespace to watch
  • context: 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

HTTP-based, no special server setup required
Browser automatically reconnects on disconnect
Perfect for monitoring (server → client only)
Native EventSource API, no library needed

Troubleshooting

Connection Closes Immediately

Cause: Namespace parameter missing or invalid Solution: Ensure namespace is provided:

No Events Received

Cause: No resources in namespace Solution: Create some resources or use demo mode

Frequent Reconnections

Cause: Network issues or server restart Solution: SSE automatically reconnects. Check server logs for errors.

Next Steps

Deployments API

Deployment endpoints

Pods API

Pod endpoints