Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces real-time notification functionality to the chat system by integrating the
NotificationServicewith theChatGateway. Key changes include managing user connections, enabling real-time notification delivery, and ensuring module dependencies are properly configured.Enhancements to
ChatGatewayfor Notifications:userSocketMapto track connected sockets for each user and manage their notification rooms. (src/chat/chat.gateway.ts, src/chat/chat.gateway.tsR39-R47)src/chat/chat.gateway.ts, src/chat/chat.gateway.tsR65-R93)src/chat/chat.gateway.ts, src/chat/chat.gateway.tsR103-R142)Integration of Notifications Module:
NotificationsModuleinto theChatModuleto establish a dependency between the two modules. (src/chat/chat.module.ts, [1] [2]ChatModulein theNotificationsModuleto resolve circular dependencies. (src/notifications/notifications.module.ts, src/notifications/notifications.module.tsL1-R16)Updates to
NotificationService:ChatGatewayinto theNotificationServiceto enable real-time notification delivery. (src/notifications/notifications.service.ts, src/notifications/notifications.service.tsR14-R15)src/notifications/notifications.service.ts, src/notifications/notifications.service.tsR58-R74)