Description:
Notifications are currently only available by polling GET /notifications. Real-time delivery improves UX.
Tasks:
- Install
@nestjs/websockets and socket.io
- Create
NotificationsGateway that authenticates connections via JWT
- Emit
notification events to the user's socket room when a new notification is created
- Connect from the frontend using
socket.io-client
- Show a notification bell in the Navbar with an unread count badge that updates in real time
Description:
Notifications are currently only available by polling
GET /notifications. Real-time delivery improves UX.Tasks:
@nestjs/websocketsandsocket.ioNotificationsGatewaythat authenticates connections via JWTnotificationevents to the user's socket room when a new notification is createdsocket.io-client