mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-29 06:15:12 +00:00
Remove unused ngOnInit
This commit is contained in:
@ -24,6 +24,7 @@ export class MessagesComponent implements OnInit {
|
||||
this.websocketService.connect();
|
||||
this.websocketService.observeAnchor<Message>('message').subscribe(
|
||||
(event) => {
|
||||
console.log(event.data);
|
||||
this.messages.push(event.data);
|
||||
event.data.message = this.convert(event.data.message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user