fix customer ws subscription #318

Merged
RecentRunner merged 1 commits from fix-customer-ws-subscription into main 2026-04-15 21:19:58 -06:00
RecentRunner commented 2026-04-15 21:19:44 -06:00 (Migrated from github.com)

Summary

  • Customers were being disconnected from WebSocket when chat pages tried to subscribe to /topic/chat/conversations, which the backend blocks for the CUSTOMER role
  • Fixed by checking user role: customers subscribe to their personal /user/queue/chat/conversations queue instead; staff/admin use /topic/chat/conversations
  • Applies to both chat/page.js and ai-chat/page.js
## Summary - Customers were being disconnected from WebSocket when chat pages tried to subscribe to `/topic/chat/conversations`, which the backend blocks for the CUSTOMER role - Fixed by checking user role: customers subscribe to their personal `/user/queue/chat/conversations` queue instead; staff/admin use `/topic/chat/conversations` - Applies to both `chat/page.js` and `ai-chat/page.js`
Sign in to join this conversation.