Compare commits
No commits in common. "d7d04929d508d65872a861a8ae8f432dcc56ee36" and "96b9eac4f7c9f388865fffea1a4aa2a05a5ddb0d" have entirely different histories.
d7d04929d5
...
96b9eac4f7
|
@ -25,12 +25,10 @@ export class AppGateway
|
||||||
|
|
||||||
constructor(private appService: AppService) {}
|
constructor(private appService: AppService) {}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
afterInit(server: Server) {
|
afterInit(server: Server) {
|
||||||
this.logger.log('Initialized...');
|
this.logger.log('Initialized...');
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unused-vars
|
|
||||||
handleConnection(client: Socket, ...args: any[]) {
|
handleConnection(client: Socket, ...args: any[]) {
|
||||||
this.logger.log(`Client connected: ${client.id}`);
|
this.logger.log(`Client connected: ${client.id}`);
|
||||||
client.emit(MESSAGE_TO_CLIENT, this.appService.getMessages());
|
client.emit(MESSAGE_TO_CLIENT, this.appService.getMessages());
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { MessagesService } from './messages.service';
|
import { MessagesService } from './messages.service';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map, tap } from 'rxjs/operators';
|
||||||
import { Message } from '@chat-room/api-interfaces';
|
import { Message } from '@chat-room/api-interfaces';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
Loading…
Reference in New Issue