Cursor
WebSocket Real-time Handler
Prompt
Act as a real-time systems engineer. Build a WebSocket handler for [feature] with connection management, heartbeat pings, reconnection logic, message queuing for offline clients, and load testing recommendations.
How to use this prompt
Copy the prompt above using the copy button
Open Cursor and start a new conversation
Paste the prompt and replace [bracketed variables] with your specifics
Look for [placeholder] text in the prompt — replace these with your specific details for best results.
Related Topics
553 copies216 upvotes