2 Commits

2 changed files with 3 additions and 1 deletions
Split View
  1. +2
    -0
      apps/api/src/app/app.gateway.ts
  2. +1
    -1
      apps/chat-room/src/app/app.component.ts

+ 2
- 0
apps/api/src/app/app.gateway.ts View File

@@ -25,10 +25,12 @@ export class AppGateway

constructor(private appService: AppService) {}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
afterInit(server: Server) {
this.logger.log('Initialized...');
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unused-vars
handleConnection(client: Socket, ...args: any[]) {
this.logger.log(`Client connected: ${client.id}`);
client.emit(MESSAGE_TO_CLIENT, this.appService.getMessages());


+ 1
- 1
apps/chat-room/src/app/app.component.ts View File

@@ -1,7 +1,7 @@
import { Component } from '@angular/core';
import { MessagesService } from './messages.service';
import { Observable } from 'rxjs';
import { map, tap } from 'rxjs/operators';
import { map } from 'rxjs/operators';
import { Message } from '@chat-room/api-interfaces';

@Component({


Loading…
Cancel
Save