Index · Common pitfalls
1 min readRapid overview
Common pitfalls
- Not using a backplane for multiple server instances - Messages only reach clients connected to the same server
- Forgetting token refresh handling - WebSocket connections don't automatically refresh tokens
- Blocking Hub methods - Use async/await, don't block the Hub thread
- Not handling reconnection state - UI should indicate connection status
- Sending too much data - Use streaming for large payloads, batch small updates
- Not grouping by tenant in multi-tenant apps - Security risk of cross-tenant notifications
- Missing Service Worker for offline/background - Users miss notifications when app isn't focused