-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
Title: feat(notify): implement websocket notifications (socket.io)
Complexity Score: 200 points
Description
Users expect instant feedback. Implement a WebSocket gateway to push real-time updates for events like "Bid Received", "Item Sold", or "Auction Won".
Requirements and Context
- Tech:
socket.iowith@nestjs/platform-socket.io. - Auth: Authenticate socket connections using the existing JWT strategy.
- Events:
notification: Generic event for UI toasts.bid_update: Real-time auction price updates.
Suggested Execution
- Create
NotificationsModuleandNotificationsGateway. - Implement
handleConnectionto verify JWT token from query param or header. - Create
NotificationsServicethat can be injected into other modules (Marketplace, Auth). - When an auction bid is placed, call
notificationsService.notifyUser(sellerId, 'New Bid').
Test and Commit
- Test connection with valid/invalid tokens.
- Commit Message:
feat(notify): implement websocket notifications (socket.io)
Reactions are currently unavailable