Skip to content
Snippets Groups Projects
Commit 87b5bdde authored by Samuli Virtapohja's avatar Samuli Virtapohja
Browse files

notifications folder audited

parent 89019fe3
No related branches found
No related tags found
2 merge requests!59Development to master,!58Development to testing
...@@ -16,6 +16,10 @@ import { GameEntity } from '../game/game.entity'; ...@@ -16,6 +16,10 @@ import { GameEntity } from '../game/game.entity';
import { NotificationdDTO } from './notification.dto'; import { NotificationdDTO } from './notification.dto';
import { ValidationPipe } from '../shared/validation.pipe'; import { ValidationPipe } from '../shared/validation.pipe';
/*
NotificationGateway contains websocket server and listener for game-info
*/
@WebSocketGateway() @WebSocketGateway()
export class NotificationGateway export class NotificationGateway
implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect { implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
......
...@@ -7,10 +7,15 @@ import { GameEntity } from '../game/game.entity'; ...@@ -7,10 +7,15 @@ import { GameEntity } from '../game/game.entity';
import { NotificationsController } from './notifications.controller'; import { NotificationsController } from './notifications.controller';
import { NotificationsService } from './notifications.service'; import { NotificationsService } from './notifications.service';
/*
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
/// Notification /// /// Notification ///
/// - contains everything to do with Notification data. /// /// - contains everything to do with Notification data. ///
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
*/
@Module({ @Module({
imports: [TypeOrmModule.forFeature([NotificationEntity, GameEntity])], imports: [TypeOrmModule.forFeature([NotificationEntity, GameEntity])],
providers: [NotificationGateway, NotificationsService], providers: [NotificationGateway, NotificationsService],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment