Meister
WebSocket Auth Pattern
Secure WebSocket authentication with JWT and rooms
Vollständiger Prompt
Implement a secure WebSocket authentication pattern using JWT tokens with handshake validation, token refresh on expiration, connection rate limiting, room-based access control, message validation with Zod schemas, graceful reconnection with exponential backoff, and horizontal scaling with Redis pub/sub
Kompatibel mit
✨GPT-4o✨Claude 3.5 Sonnet✨Cursor
Anfänger Rating
4.7(2,600)
Stats
5,800Aufrufe
1,200Kopien
2,600Likes
1,200Speicherungen