Debug a WebSocket Issue
Stabilizing WebSocket connections in production
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
My WebSocket connection between [CLIENT] and [SERVER] disconnects after [DURATION] or fails to reconnect properly. Here are the logs: [PASTE LOGS]. Analyze potential causes: timeouts, missing heartbeat, reconnection handling, proxy/load balancer issues, concurrent connection limits. Provide robust WebSocket connection handling code.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour isoler le problème, commence par tester ta connexion avec un outil comme `wscat` (sans client custom). Si ça tient, le souci est côté client : ajoute un ping/pong manuel toutes les 30s et une reconnexion avec backoff exponentiel. Si ça casse aussi, vérifie les timeouts du proxy/load balancer (souvent 60s par défaut).
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Headlines (Counter-Intuitive Angle)
Differentiation, saturated markets
Forecast key evolutions in your sector
Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.
Bootstrap and Confidence Intervals
Estimating metric uncertainty
Incident Communication Protocol
Managing crisis communication in a school setting