Browse Source

add comment

Shun Miyazawa 4 years ago
parent
commit
c0e0bdf27b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/app/src/server/service/in-app-notification.ts

+ 2 - 0
packages/app/src/server/service/in-app-notification.ts

@@ -35,6 +35,8 @@ export default class InAppNotificationService {
   emitSocketIo = async(userId, pageId) => {
     if (this.socketIoService.isInitialized) {
       const count = await this.getUnreadCountByUser(userId);
+
+      // emit to the room for each page
       await this.socketIoService.getDefaultSocket()
         .in(getRoomNameWithId(RoomPrefix.PAGE, pageId))
         .except(getRoomNameWithId(RoomPrefix.USER, userId))