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

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

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

ProductiviteBeginnerAll AIs

Write an Impactful Professional Apology Email

This prompt generates a structured professional apology email adapted to context, preserving credibility and the relationship with the recipient.

0401
ProductiviteBeginnerAll AIs

Social Reflection Questions

Social learning

0201
ProductiviteIntermediateAll AIs

Respond to a Difficult Email with Diplomacy and Confidence

A comprehensive prompt to draft a professional, measured response to a difficult email, maintaining control of tone and situation.

0491
ProductiviteBeginnerAll AIs

Synthetic Conclusion

Conclusion writing

0253