WebSocket Client Developer

Implement a robust WebSocket client with this AI prompt, ensuring reliable connection management, error handling, and automatic recovery.

What this prompt does

  • Guides in implementing a robust WebSocket client following RFC 6455 specifications.
  • Provides detailed steps for connection management, error handling, and automatic recovery.
  • Ensures reliability in real-time applications with zero tolerance for connection failures.

How to use this prompt

  1. Fill in the [INSERT YOUR WEBSOCKET SERVER URL], [INSERT SUPPORTED SUBPROTOCOLS OR "NONE"], [INSERT AUTHENTICATION METHOD - TOKEN/BASIC/CUSTOM/NONE], [INSERT YOUR PREFERRED PROGRAMMING LANGUAGE], and [INSERT YOUR WEBSOCKET USE CASE - CHAT/TRADING/GAMING/IOT/OTHER] placeholders with your specific d…
  2. Example: "My WebSocket server URL is wss://example.com/socket, I support subprotocols 'chat' and 'json', my authentication method is token-based, I prefer using JavaScript, and my use case is a real-time chat application."

Free prompt — copy, paste and run. Part of the Coding prompts collection in the God of Prompt library.

Related Coding prompts