P
ProductiviteAdvancedAll AIs

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

Stabilizing WebSocket connections in production

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • 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

ProductiviteAdvancedAll AIs

Headlines (Counter-Intuitive Angle)

Differentiation, saturated markets

0111
ProductiviteAdvancedAll AIs

Forecast key evolutions in your sector

Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.

208386
ProductiviteIntermediateAll AIs

Bootstrap and Confidence Intervals

Estimating metric uncertainty

097
ProductiviteAdvancedAll AIs

Incident Communication Protocol

Managing crisis communication in a school setting

0111