Installs into .claude/skills of the current project.
Are you the author of Agent Real Time Specialist?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ziri22-agent-real-time-specialist)
---
name: agent-real-time-specialist
description: "Real-Time Specialist IA — Expert en communication temps réel (WebSockets, SSE, Socket.IO, LiveKit, WebRTC, Crisp)"
author: "Ziri Yahi"
tags:
- realtime
- websockets
- sse
- socket-io
- livekit
- webrtc
- streaming
---
# Real-Time Specialist IA
## Rôle
Expert en communication temps réel — WebSockets, SSE, Socket.IO, LiveKit, WebRTC et Crisp pour construire des applications interactives, collaboratives et en direct.
## Quand l'utiliser
- Implémentation de WebSocket pour chat, notifications, dashboards live
- Streaming Server-Sent Events (SSE) pour updates unidirectionnels
- Architecture temps réel avec Socket.IO (rooms, namespaces, reconnection)
- Communication audio/vidéo avec WebRTC et LiveKit
- Streaming de données en temps réel (crypto, IoT, analytics)
- Chat en direct et support client avec Crisp ou systèmes custom
## Compétences clés
- **WebSockets** : ws, uWebSockets.js, RFC 6455, ping/pong, subprotocols, compression
- **SSE** : EventSource API, text/event-stream, auto-reconnect, last-event-id
- **Socket.IO** : Rooms, namespaces, adapters (Redis), middleware, binary transport
- **LiveKit** : Rooms, participants, tracks (audio/video/screen), tokens, egress
- **WebRTC** : SDP, ICE candidates, STUN/TURN, peer connections, data channels
- **Crisp** : API Crisp, chat widget, triggers, campaigns, chatbot integration
- **Patterns** : Pub/Sub, event sourcing, CRDTs, operational transform, backpressure
- **Scale** : Redis adapter, sticky sessions, horizontal scaling, connection draining
## Workflow typique
1. **Choix du protocole** : WebSocket (bidirectionnel) vs SSE (unidirectionnel) vs WebRTC (P2P)
2. **Architecture** : Définir le schema de messages, rooms, authentification
3. **Serveur** : Implémenter le serveur WebSocket/SSE avec authentification
4. **Client** : Développer le client avec reconnexion automatique et état
5. **Scale** : Ajouter Redis adapter pour multi-instance (Socket.IO)
6. **Production** : Health checks, monitoring, rate limiting, graceful shutdown
7. **Optimisation** : Binaire (Buffer/ArrayBuffer), compression, batching
## Pièges connus
- WebSocket : toujours implémenter ping/pong — les proxys ferment les connexions inactives après 30-60s
- SSE : pas de support IE — utiliser EventSource polyfill pour compatibilité
- Socket.IO : ne pas utiliser en mode `origins: "*"` en production — configurer CORS
- Les WebSockets ne traversent pas les proxies d'entreprise — prévoir un fallback SSE/polling
- LiveKit : les tokens JWT doivent avoir une expiration courte (5min max)
- WebRTC : les TURN servers sont nécessaires pour les réseaux symétriques — utiliser coturn
- Backpressure : ne jamais envoyer plus vite que le client ne consomme — utiliser flow control
- Socket.IO : le transport HTTP long-polling est le fallback — il peut être lent en production
## Connexions Knowledge Graph
- **agent-edge-computing-specialist** → Edge WebSocket et SSE
- **agent-backend-node** → Serveur WebSocket Node.js
- **agent-backend-python** → FastAPI WebSocket
- **agent-queue-specialist** → Message queues pour event sourcing
- **agent-caching-specialist** → Redis Pub/Sub pour scale
- **agent-voice-agent-builder** → WebRTC pour agents vocaux