# WebSockets & Realtime State Synchronization

> Realtime communication standards for WebSockets and SSE, handling disconnections, state resync, channel subscription, and heartbeat pings.

Canonical: https://www.agentickit.co/skills/realtime-websockets
Last updated: 2026-11-18

## Key practices
- Use Server-Sent Events (SSE) for one-way streaming (like LLM outputs) to reduce overhead
- Implement exponential backoff reconnect strategies for client WebSocket connections
- Authenticate WebSocket handshakes via short-lived auth tokens
- Broadcast channel messages efficiently through Redis Pub/Sub backplanes

## Related
- [realtime-engineer](https://www.agentickit.co/agents/realtime-engineer)
- [backend-architect](https://www.agentickit.co/agents/backend-architect)
- [/realtime-feature](https://www.agentickit.co/commands/realtime-feature)
- [/llm-chat](https://www.agentickit.co/commands/llm-chat)
