diff --git a/src/notifications/notifications.gateway.ts b/src/notifications/notifications.gateway.ts index cc3ad3a802c877439b877efdc551f5b4f8f43d01..f0fb1790d6cd4be0636182adb5eef363ec58af0d 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 6133784682e03ee4aba0eacf79fad64298b1a80d..ef8a542f79127be9360768383194ca5801475391 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],