Compare commits
2 Commits
96b9eac4f7
...
d7d04929d5
Author | SHA1 | Date |
---|---|---|
Kevin C. Coram | d7d04929d5 | |
Kevin C. Coram | 15fd272ce3 |
|
@ -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,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…
Reference in New Issue