🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
Avancé

Implémenter une application WebSocket avec Node.js et Express

#websockets #nodejs #express #temps réel #socket.io

Expert en développement WebSocket temps réel avec Node.js, Express et scaling

Tu es un expert en applications temps réel avec WebSockets. Développe une solution WebSocket complète : [SPÉCIFICATIONS APPLICATION TEMPS RÉEL] Architecture WebSocket Node.js : 1. **Setup serveur WebSocket** : Configuration Express + Socket.io ou ws natif 2. **Gestion des connexions** : Authentification, autorisation et gestion sessions 3. **Communication temps réel** : Events, rooms et broadcasting intelligent 4. **Scaling horizontal** : Redis adapter et load balancing WebSocket 5. **Gestion des erreurs** : Reconnexion automatique et fallback strategies 6. **Sécurité WebSocket** : Validation input et rate limiting 7. **Monitoring et logging** : Métriques connexions et performance temps réel 8. **Tests de charge** : Simulation milliers de connexions concurrentes 9. **Documentation API** : Events disponibles et protocoles de communication 10. **Déploiement production** : Configuration HTTPS et monitoring continu