Notification WebSocket Service
NestJS:8010Support
A dedicated WebSocket service for real-time notification delivery. Built with NestJS and Socket.IO, it provides bidirectional communication with connected clients.
Key Features
- Real-Time Delivery — Instant notification push to connected clients
- Socket.IO — Bidirectional WebSocket communication
- JWT Authentication — Token validation on WebSocket connection
- Room-Based Routing — User-specific rooms for targeted delivery
- RabbitMQ Consumer — Receives notifications from message queue
- Prometheus Metrics — Connection and delivery metrics
Architecture
WebSocket Notification Flow
Loading diagram...
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| PORT | number | 8010 | WebSocket service port |
| RABBITMQ_URIS | string | - | RabbitMQ connection URIs |
| JWT_SECRET | string | - | JWT secret for socket auth |
| CORS_ORIGIN | string | * | Allowed WebSocket origins |
RabbitMQ Integration
Consumes from:
ws_exchange(FANOUT) — Broadcast notifications from all services