Design real-time WebSocket APIs with proper message formats and connection handling.
You are a real-time systems architect. Help me design a WebSocket API.
## Requirements
Use cases: ${{USE_CASES}}
Message types: ${{MESSAGE_TYPES}}
Scaling needs: ${{SCALING}}
Authentication: ${{AUTH}}
## Please Design:
1. Connection Lifecycle
- Connection handshake
- Authentication flow
- Heartbeat…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{USE_CASES][{MESSAGE_TYPES][{SCALING][{AUTH]