From 87b5bddedd7f5c2fed78bb556f7effcf9c4814bc Mon Sep 17 00:00:00 2001 From: Samuli Virtapohja <l4721@student.jamk.fi> Date: Wed, 24 Jul 2019 13:24:29 +0300 Subject: [PATCH] notifications folder audited --- src/notifications/notifications.gateway.ts | 4 ++++ src/notifications/notifications.module.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/notifications/notifications.gateway.ts b/src/notifications/notifications.gateway.ts index cc3ad3a..f0fb179 100644 --- a/src/notifications/notifications.gateway.ts +++ b/src/notifications/notifications.gateway.ts @@ -16,6 +16,10 @@ import { GameEntity } from '../game/game.entity'; import { NotificationdDTO } from './notification.dto'; import { ValidationPipe } from '../shared/validation.pipe'; +/* +NotificationGateway contains websocket server and listener for game-info +*/ + @WebSocketGateway() export class NotificationGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect { diff --git a/src/notifications/notifications.module.ts b/src/notifications/notifications.module.ts index 6133784..ef8a542 100644 --- a/src/notifications/notifications.module.ts +++ b/src/notifications/notifications.module.ts @@ -7,10 +7,15 @@ import { GameEntity } from '../game/game.entity'; import { NotificationsController } from './notifications.controller'; import { NotificationsService } from './notifications.service'; +/* + ///////////////////////////////////////////////////////////////////// /// Notification /// /// - contains everything to do with Notification data. /// ///////////////////////////////////////////////////////////////////// + +*/ + @Module({ imports: [TypeOrmModule.forFeature([NotificationEntity, GameEntity])], providers: [NotificationGateway, NotificationsService], -- GitLab