Index · Common pitfalls

1 min read
Mid-level5 min read
Rapid overview

Common pitfalls

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