Help me implement real-time features in my application.
Feature: [CHAT / NOTIFICATIONS / LIVE UPDATES / COLLABORATION / GAMING]
Tech stack: [DESCRIBE]
Scale: [SMALL / MEDIUM / LARGE]
Provide:
1. **Technology Choice**: WebSockets vs SSE vs polling — which for my use case
2. **Server Setup**: WebSocket server implementation
3. **Client Connection**: Frontend WebSocket connection and reconnection logic
4. **Message Format**: Designing the message protocol
5. **Room/Channel Pattern**: Grouping connections for targeted messaging
6. **Authentication**: Securing WebSocket connections
7. **Error Handling**: Connection drops, reconnection, and message queuing
8. **Scaling**: How to scale WebSockets across multiple servers
9. **State Synchronisation**: Keeping client and server state in sync
10. **Third-Party Options**: Socket.io, Pusher, Ably — when to use vs build
Help me implement real-time features in my application.
Feature: [CHAT / NOTIFICATIONS / LIVE UPDATES / COLLABORATION / GAMING]
Tech stack: [DESCRIBE]
Scale: [SMALL / MEDIUM / LARGE]
Provide:
1. **Technology Choice**: WebSockets vs SSE vs polling — which for my use case
2. **Server Setup**: WebSocket server implementation
3. **Client Connection**: Frontend WebSocket connection and reconnection logic
4. **Message Format**: Designing the message protocol
5. **Room/Channel Pattern**: Grouping connections for targeted messaging
6. **Authentication**: Securing WebSocket connections
7. **Error Handling**: Connection drops, reconnection, and message queuing
8. **Scaling**: How to scale WebSockets across multiple servers
9. **State Synchronisation**: Keeping client and server state in sync
10. **Third-Party Options**: Socket.io, Pusher, Ably — when to use vs build
How to use this prompt
Copy the prompt above and paste it into ChatGPT, Claude, Gemini, or any AI assistant. Replace the bracketed placeholders with your specific details.
Leave a Review
Tried this prompt? Let us know how it worked — your reviews help other users find the best prompts.